LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Access Database

In the grander scheme of things of things no one should have the database
open. If at all possible set up the database with a front end/back end
architecture. The back end is all of the tables. The front end is all of the
forms queries and reports. The front end is linked to the back end via links
(Get External Data - Link Data). This way no one will have the database
exclusively open. There is also the added benfit of having multiple front
ends for one back end.

HTH

" wrote:

So I can access the Access Database using the following:

Dim myDB As ADODB.Connection
Dim myRS As ADODB.Recordset
Set myDB = New ADODB.Connection
Set myRS = New ADODB.Recordset


myDB.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=M:\Work
Log\Work Log .mdb;USER ID=Facilities;Password=;"
myRS.Open "SELECT DISTINCT `Jamis #` FROM `Work Log` `Work Log` WHERE
status < 'Complete' or status < 'Canceled' or status < 'On Hold'",
myDB, adOpenDynamic, adLockReadOnly


and it works fine if nobody has the database open, however if someone
has the database open, I get an error. Anyway around this?


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Excel Database via Access Main Database with a script Finnbar New Users to Excel 2 November 3rd 08 07:24 PM
Access Database John Excel Discussion (Misc queries) 0 August 29th 05 07:54 AM
users and DAO with access database Michael Malinsky[_3_] Excel Programming 1 April 16th 04 12:18 PM
VBA Database access - How? Simon Sunke Excel Programming 3 January 23rd 04 12:24 PM
VBA Database access Simon Sunke Excel Programming 3 January 23rd 04 11:56 AM


All times are GMT +1. The time now is 02:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"