Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Access Database
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Update Excel Database via Access Main Database with a script | New Users to Excel | |||
Access Database | Excel Discussion (Misc queries) | |||
users and DAO with access database | Excel Programming | |||
VBA Database access - How? | Excel Programming | |||
VBA Database access | Excel Programming |