I am trying to use Access 2003 VBA on a local PC to execute a VBA query to a remote server running SQL 2000. Here is the VBA query I am trying to use with no luck:
SQLa = "INSERT INTO tbl_Data IN '" & Path & "' SELECT * FROM Oven_Data"
Set rs = cn.Execute(SQLa, , adCmdText)
This works but creates a new SQL table on the server, I need the data available locally on the Access 2003 PC:
SQLa = "select * INTO tbl_Graph FROM ##Temperature_Temp"
Set rs = cn.Execute(SQLa, , adCmdText)
tbl_Graph is in Access 2003 on my PC I want to populate
Oven_Data is in SQL 2000 on the server which contains the data.
Path is the path to the database on my local PC
I am not having luck in making this happen. Any suggestions ? Thank you all so much in advance.
SQLa = "INSERT INTO tbl_Data IN '" & Path & "' SELECT * FROM Oven_Data"
Set rs = cn.Execute(SQLa, , adCmdText)
This works but creates a new SQL table on the server, I need the data available locally on the Access 2003 PC:
SQLa = "select * INTO tbl_Graph FROM ##Temperature_Temp"
Set rs = cn.Execute(SQLa, , adCmdText)
tbl_Graph is in Access 2003 on my PC I want to populate
Oven_Data is in SQL 2000 on the server which contains the data.
Path is the path to the database on my local PC
I am not having luck in making this happen. Any suggestions ? Thank you all so much in advance.