Results 1 to 8 of 8

Thread: *** RESOLVED *** ASP >> SQL SELECT * and WHERE ? How does it work?

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2001
    Location
    Bangkok
    Posts
    969

    *** RESOLVED *** ASP >> SQL SELECT * and WHERE ? How does it work?

    Hi,

    I extend now my question.

    I am currently creating a ASP-FIle in which I want to use only selected data. This data I want to get with:

    numID_Region = 2
    numID_Area = 4

    I got already the answer if I use WHERE with one option, How i can use WHERE with two options?

    With one option I got this answer here and it works fine (Thanks):
    Set rstProvince = CreateObject("ADODB.Recordset")
    rstProvince.Open "SELECT * FROM Guide WHERE ID_Region = " & numID_Region & " ORDER BY ID_Region, ID_Province", con


    So, now the question, how can I include the second Restriction?


    Thanks in advance for your help
    Franky



    I found the solution, thanks!
    Last edited by Franky; Feb 4th, 2002 at 02:03 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width