splited bases and table-type Recordset

pirena

New member
Local time
Today, 13:52
Joined
Jan 21, 2010
Messages
1
Hello!
Please, help me solve a problem.
I has 2 databases:back-end - with tables and front-end - with forms and other objects, i.e. front-end database has linked tables with back-end database. Those databases located on different computers. So linking tables was made using network path.

When I try to run code from front-end database:

Dim db As Database
Dim rs As Recordset
Set db = DBEngine.Workspaces(0).OpenDatabase("\\CompName\....\BackEndDataBase.accdb")
Set rs=db.OpenRecordset("TableName",dbOpenTable)

error occurs :"The Microsoft Jet database engine cannot open the file .... It is already opened exclusively by another user, or you need permission to view its data ".

When i do this on same computer, i.e. used local path for tables linking- all works well!!!

I need to open table-type Recordset, dynaset - not suitable.
How can i do that?

Thanks.
 

Users who are viewing this thread

Back
Top Bottom