Hello-
I'm not sure if this is possible, but I would think so...
I am trying to run an INSERT INTO statement to pull data from the database on our server and insert it into a local Access table on my machine. I can't use a pass through query because the uid/pwd changes for each query and once Access makes a connection using a pt query you can't close it without closing the application.
Here's a bit of my code:
But of course this looks for tblTest (my local table) on the server and cannot find it.
Any suggestions???
Thanks-
I'm not sure if this is possible, but I would think so...
I am trying to run an INSERT INTO statement to pull data from the database on our server and insert it into a local Access table on my machine. I can't use a pass through query because the uid/pwd changes for each query and once Access makes a connection using a pt query you can't close it without closing the application.
Here's a bit of my code:
Code:
strSQL = "INSERT INTO tblTest SELECT shpnam FROM shipShipmentMaster WHERE shipno LIKE 'K9992222001'"
Set objConn = CreateObject("ADODB.Connection")
objConn.Open strConnect
objConn.Execute (strSQL)
Any suggestions???
Thanks-