GeoffS Level: VB Lord

 Registered: 29-09-2004 Posts: 536
|
Re: ? parameter in sql string
Hi ivoke,
A parameter is a parameter - the value that you are searching for in a field in a table. You cannot use it to represent the actual table. If you want to change the table from which you are selecting data then use a string variable.
EG
Dim strTableName as String
"SELECT * FROM " & strTableName & " WHERE ID=1"
____________________________
multi-tasking - the ability to hang more than one app. at the same time.
|