What's wrong with this query? (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


duke -> What's wrong with this query? (9/4/2001 13:14:00)

I keep getting this error and I'm sure I have some punctution wrong but cant figure out where.

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.

Here is the code I am trying to use,

f = "WHERE week_no = '"&Request.QueryString("sweekno")&"'"
sSQL = "SELECT * FROM " & sTableName & f
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sSQL, db, adOpenStatic


I am using this similarly in another part of this site without trouble, so I don't understand waht's going on.

Thanks in advance.

------------------
Duke





duke -> RE: What's wrong with this query? (9/4/2001 14:30:00)

Nevermind, I got bitten by not having a space in one of my statements.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.882813E-02