Forum Moderators: open

Message Too Old, No Replies

ASP Select Statement Question

         

kevinj

2:38 pm on Apr 29, 2003 (gmt 0)

10+ Year Member



I have a table called EXHIBITORS and have created a login page that needs to display all exhibitors whose name begins with the letters A-K. I'm not sure how to write the ASP Select Statement.

Set RS=DB.execute("SELECT * FROM EXHIBITORS WHERE ______________ ORDER BY exhibitor_name ASC")

Any help would be greatly appreciated.

jpjones

2:43 pm on Apr 29, 2003 (gmt 0)

10+ Year Member



Try,
Set RS=DB.execute("SELECT * FROM EXHIBITORS WHERE (exhibitor_name < "k%") ORDER BY exhibitor_name ASC")

Where the % is your DB engines' wildcard.

HTH,
JP

aspdaddy

2:44 pm on Apr 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Havent we done this one already :)
[webmasterworld.com...]

kevinj

5:22 pm on Apr 29, 2003 (gmt 0)

10+ Year Member



You have a better memory than me ASPDaddy. Sorry about that. Too much time staring at the screen has made my memory suffer.