I think this is a common issue for all those people who are upgrading from access to SQL server (as database), so i'm asking where i can find some resource to accomplish the following "basic" task.
The following command is used to attach an Access Table contained in an .mdb file:
DoCmd.TransferDatabase acLink, "Microsoft Access", "c:\myapp\mydb.mdb", acTable, "target tablename", "local tablename"
How do you attach a table contained in an SQL server 2005 database?
Say that the database is on a server called MYSQLSERV, which contains a database called MYAPPDATABASE, that contains the table "MYTABLE"...
I tried the following, but i didn't succeed:
I created an "ODBC source" called MYODBC, linked to the correct server and to the correct database (I tested and I was able to link and browse the data in a table), then I tried this command:
DoCmd.TransferDatabase acLink, "ODBC Databases", "MYODBC", acTable, "target tablename", "local tablename"
I got the following error:
Runtime error 2507: The ODBC Databases type isn't an instyalled database type or doesn't support the operation you choose.
What am I missing?
The following command is used to attach an Access Table contained in an .mdb file:
DoCmd.TransferDatabase acLink, "Microsoft Access", "c:\myapp\mydb.mdb", acTable, "target tablename", "local tablename"
How do you attach a table contained in an SQL server 2005 database?
Say that the database is on a server called MYSQLSERV, which contains a database called MYAPPDATABASE, that contains the table "MYTABLE"...
I tried the following, but i didn't succeed:
I created an "ODBC source" called MYODBC, linked to the correct server and to the correct database (I tested and I was able to link and browse the data in a table), then I tried this command:
DoCmd.TransferDatabase acLink, "ODBC Databases", "MYODBC", acTable, "target tablename", "local tablename"
I got the following error:
Runtime error 2507: The ODBC Databases type isn't an instyalled database type or doesn't support the operation you choose.
What am I missing?