View Full Version : getting info from a table, not a query


bloody_football
10-06-2006, 11:17 PM
Dim rsSet
strSQL = "SELECT * FROM set_query"
Set rsSet = Server.CreateObject("ADODB.Recordset")
rsSet.Open strSQL, objConn
Now this gets all the info out of a query but I to get the info straight out of the table.

pbaldy
10-07-2006, 08:58 AM
Am I missing something?

strSQL = "SELECT * FROM TableName"

bloody_football
10-07-2006, 11:48 AM
strSQL = "SELECT * FROM TableName"
gives me a 'Syntax error in FROM clause. '
The table name is 'set' so it is definately not a spelling error :)

James