I'm having a recurring problem with this bit of code, i'd be gratefull if you could get me <br>on the right track. i've at it a week<br><br>The following is an example of what happens, I'm trying the same code to access a database constructed in ACCESS and a query made pasted into the ASP page:<br><br>SELECT SongTable.NameSong #basically displaying the songs from the song table#<br>FROM SongTable<br>ORDER BY SongTable.NameSong; # this is the query produced by access#<br><br>This is how I pasted the query into ASP, I wasn't clear from the book whether you make a literal copy<br><br><%<br><br>Dim oRS1<br>Set oRS1=Server.CreateObject("adodb.Recordset"
<br>sqltext="SELECT SongTable.NameSong"<br>sqltext=sqltext & "FROM SongTable"<br>sqltext=sqltext & "ORDER BY SongTable.NameSong;"<br>oRS1.Open sqltext, "DSN=music" # line 16 # <br>Response.Write <br>Do While NOT oRS1.eof<br>Response.Write oRS1 ("NameSong"
& "<br>"<br>oRS1.MoveNext<br>loop<br>oRS1.Close<br>Set oRS1 = nothing <br>%><br><br>#And this is the error message I got, this seems to be my constant problem#<br><br>Microsoft OLE DB Provider for ODBC Drivers error '80040e14' <br><br>[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'SongTable.NameSongFROM<br>SongTableORDER BY SongTable.NameSong'. <br><br>/muse1.asp, line 16 <br><br><br>I'd be gratefull for any hints,<br>