Hi.
I have a table in an Access '97 database which needs to be exported, using code, to an SQL database.
I am tring to use the DoCmd.TransferDatabase but that is giving me a run-time error of 3146 (ODBC--call failed) - helpful as ever ;-)
Any ways - this is what i have :-
<<MY_TABLE>> and <<SQL_TABLE>> are different names, and <<SQL_TABLE>> may exist within the SQL db - if so i want to completly overwrite it.
I know that in theory, this works nicly because i can use the same vars to link to a table on the SQL db.
TIA
Tim if at first you don't succeed, get a 10lb lump hammer
I have a table in an Access '97 database which needs to be exported, using code, to an SQL database.
I am tring to use the DoCmd.TransferDatabase but that is giving me a run-time error of 3146 (ODBC--call failed) - helpful as ever ;-)
Any ways - this is what i have :-
Code:
DoCmd.TransferDatabase acExport, "ODBC Database", "ODBC;Driver={SQL Server};Server=<<SQLServer>>;Database<<DATABASE;Uid<<USERNAME>>;Pwd=<<PASSWORD>>;", acTable, <<MY_TABLE>>, <<SQL_TABLE>>, False, False
<<MY_TABLE>> and <<SQL_TABLE>> are different names, and <<SQL_TABLE>> may exist within the SQL db - if so i want to completly overwrite it.
I know that in theory, this works nicly because i can use the same vars to link to a table on the SQL db.
TIA
Tim if at first you don't succeed, get a 10lb lump hammer