How to connect to a BE database? (1 Viewer)

MarvinM

Registered User.
Local time
Yesterday, 22:08
Joined
Nov 26, 2013
Messages
64
Access 2007, split database, 9 users.

I have been able to link the BE tables with the Linked Table Manager. I use the DNS name path because everyone has different drive mappings.
I can open my linked tables as a RecordSet and AddNew and Update records. However, I cannot Seek and Edit the linked tables. I understand that I need to open the BE tables directly in order to do this. Now, I can do a connection like this, and it works for me:

Dim dbs As DAO.Database
Set dbs = DBEngine.OpenDatabase("R:\Data\Task_be.accdb")

But, as I said, everyone has different drive mappings. Therefore, I need to use the Network address instead of a drive letter. I tried this:

Set dbs = DBEngine.OpenDatabase("\\Server\MyBackEnd\Data\Task_be.accdb")

This doesn't work. What am I doing wrong? Thanks.
 

spikepl

Eledittingent Beliped
Local time
Today, 07:08
Joined
Nov 3, 2010
Messages
6,142
I understand that I need to open the BE tables directly in order to do this.

Incorrect. Look up and read very carefully the documentation of .Seek.
 

Mihail

Registered User.
Local time
Today, 08:08
Joined
Jan 22, 2011
Messages
2,373
This thread will show you more than you answered.
 

MarvinM

Registered User.
Local time
Yesterday, 22:08
Joined
Nov 26, 2013
Messages
64
Thanks Spike & Mihail,

I got this resolved. I had 2 problems.
1) I was able to set the UNC path in the Linked Table Manager.
2) .Seek is for use with local tables, not linked tables. I had to use .FindFirst instead.

Thank you!
 

Users who are viewing this thread

Top Bottom