getting info from a table, not a query (1 Viewer)

bloody_football

Registered User.
Local time
Tomorrow, 03:50
Joined
Sep 8, 2004
Messages
70
Code:
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

Wino Moderator
Staff member
Local time
Today, 10:50
Joined
Aug 30, 2003
Messages
36,133
Am I missing something?

strSQL = "SELECT * FROM TableName"
 

bloody_football

Registered User.
Local time
Tomorrow, 03:50
Joined
Sep 8, 2004
Messages
70
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
 

Users who are viewing this thread

Top Bottom