I am trying to write code for Running SQL statements on linked tables in Access. It does not seem to be working for me.
Here is the SQL statement I have so far. Can anyone please help me figure out what went wrong?
Searchsql = "Select [" & SearchTble & "].* from [" & SearchTble & "] Where ((([" & SearchTble & "].[ORDER #]) = '" & SearchData & "'));"
It is supposed to run the statement on a linked table. I was told that what it is doing is running it on a table within access not a linked one. Any thoughts on how to fix it?
Frederick
Here is the SQL statement I have so far. Can anyone please help me figure out what went wrong?
Searchsql = "Select [" & SearchTble & "].* from [" & SearchTble & "] Where ((([" & SearchTble & "].[ORDER #]) = '" & SearchData & "'));"
It is supposed to run the statement on a linked table. I was told that what it is doing is running it on a table within access not a linked one. Any thoughts on how to fix it?
Frederick