Microsoft
Software
Hardware
Network
Question : Access 2007 error refreshing links to a BE with password
Hi Experts,
This is my first question so hope it's clear.
I am developing a FE/BE Access 2007 database (not upgraded) where I need to refresh the links if the BE is moved. I'm using the Dev Ashish relink code as is , and without the BE having a password it works fine.
However when I add a BE password, this is what happens:
I changed the following 2 lines of code:
Set dbLink = DBEngine(0).OpenDatabase(N
ame:=strDB
Path, Options:=False, ReadOnly:=False, Connect:=";PWD=pw")
And for the table connect:
.Connect = ";Database=" & strDBPath & ";PWD=pw;"
The following line in the code...
strDBPath = fParsePath(collTbls(i))
gives
strDBPath = "tSysMS Access;PWD=pw;DATABASE=C:\
Documents and Settings\... etc"
so when the next line executes
strTbl = fParseTable(collTbls(i))
returns table name table "tSysMS Access" not the correct table name "tSys"
Consequently, get the Err.Raise cERR_NOREMOTETABLE error.
I've thought of stripping out the "MS Access" from the table name, but suspect I've missed something else.
Can anyone suggest a solution?
Answer : Access 2007 error refreshing links to a BE with password
Replace the line
fParseTable = Left$(strIn, InStr(1, strIn, ";") - 1) to
with
fParseTable = Left$(strIn, InStr(1, strIn, ";") - 10)
to strip the MS Access off and it appears to work.
Random Solutions
Script that displays all devices in Active Directory
Access 2003: Getting data to show up in columns instead of rows in a report
Internet Security 2010 removal
ie 6 display problem
WHERE clause with DLookup
Count Distinct
Windows Server 2008 /adprep on a Windows Server 2000 DC
Domain Controller Issues at boot up however network is operating correct after boot
Microsoft OCS 2007 R2 cannot complete instalation
Sharepoint can't send mails from custom workflows