Help with sorting Access table using ASP

J

John

Hi all
I have been trying to sort an Access table "calendar" by the field
"Date" into ascending order.
I've tried a straight SQL query, but I don't believe my server
supports SQL although they do support ASP.
I've tried using a stored query in Access "Gigdatesort" with no luck.

Is anyone out there who is able to help?
It would be appreciated.

TIA.
 
R

Ronx

If your server does not support SQL you cannot use any databases. SQL
is the "language" used to manipulate databases, no matter what server
or scripting language is being used.
It is more likely that either the server does not support any
database, or the syntax you are using is wrong.

A typical(?) database query should look (something) like this:


myConnString = Application("Database1_ConnectionString")
Set myConnection = Server.CreateObject("ADODB.Connection")
myConnection.Open myConnString

mySQL="SELECT * FROM WebFaqs WHERE (WebFaqs.File = """ & sFilenm &
""")"
set rsTemp1 = myConnection.execute(mySQL)


Notice that the SQL statement is contained in a string, and cannot be
interpreted as an incomplete VBscript statement.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top