Elias
Jul 11th, 2000, 08:00 AM
Can anyone tell me if its possible to write code to access data from an access database that is burned onto a CD-ROM? I keep getting the following error when I try. Do I need to change my cursor location or locktype in my ado code?
Error:
The Microsoft Jet database engine cannot open the file 'E:\alprgama.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
Code:
Private Sub Form_Load()
Dim rst As adodb.Recordset
Set rst = CreateObject("adodb.recordset")
rst.LockType = adLockReadOnly
rst.CursorLocation = adUseServer
rst.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=E:\alprgama.mdb"
rst.Open "select * from equipment"
While Not rst.EOF
List1.AddItem rst!equipid
rst.MoveNext
Wend
End Sub
-Elias
Error:
The Microsoft Jet database engine cannot open the file 'E:\alprgama.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
Code:
Private Sub Form_Load()
Dim rst As adodb.Recordset
Set rst = CreateObject("adodb.recordset")
rst.LockType = adLockReadOnly
rst.CursorLocation = adUseServer
rst.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=E:\alprgama.mdb"
rst.Open "select * from equipment"
While Not rst.EOF
List1.AddItem rst!equipid
rst.MoveNext
Wend
End Sub
-Elias