M
Marcelo
Hi!
I have a Access Front End with linked tables to a ODBC SQL Server.
Before using a ODBC, this FE file had linked tables to an Access back end in
my machine, and untill that moment, I used the following code:
Sub Backup_Tables()
Set dbFE = CurrentDb()
strPath = dbFE.TableDefs("TR_WBS").Connect
strPath = Mid(strPath, 11)
Set dbFE = Nothing
Set dbBE = OpenDatabase(strPath)
dbBE.Execute "SELECT * INTO RESTORE_Period_Log FROM Period_Log"
End Sub
Now, with ODBC, I get an error on the line:
Set dbBE = OpenDatabase(strPath)
Error 3024, Could not find file name, where file name is:
ODBC;DSN=HRCST;Description=HR_Tool_Server;APP=2007 Microsoft Office
system;Network=DBMSSOCN;Address=10.20.136.20,1433
What am I doing wrong?
Thanks in advance, regards,
Marcelo
I have a Access Front End with linked tables to a ODBC SQL Server.
Before using a ODBC, this FE file had linked tables to an Access back end in
my machine, and untill that moment, I used the following code:
Sub Backup_Tables()
Set dbFE = CurrentDb()
strPath = dbFE.TableDefs("TR_WBS").Connect
strPath = Mid(strPath, 11)
Set dbFE = Nothing
Set dbBE = OpenDatabase(strPath)
dbBE.Execute "SELECT * INTO RESTORE_Period_Log FROM Period_Log"
End Sub
Now, with ODBC, I get an error on the line:
Set dbBE = OpenDatabase(strPath)
Error 3024, Could not find file name, where file name is:
ODBC;DSN=HRCST;Description=HR_Tool_Server;APP=2007 Microsoft Office
system;Network=DBMSSOCN;Address=10.20.136.20,1433
What am I doing wrong?
Thanks in advance, regards,
Marcelo