Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I view a query from MS Access using ASP 1

Status
Not open for further replies.
Nov 13, 2001
2
GB
Hi im trying to write a Select * from ..... statement to view a query. I need users to select their number from a drop down menu and then vioew only the data for that user.

The combo box is called "number" (for example) and the query is called "data" , any ideas how i would go about this?

thanks in advance

Steve
 
Here's an example

Code:
vSql="SELECT TabHoraire.NoLocal, TabHoraire.* FROM TabHoraire WHERE (((TabHoraire.NoLocal)='B1203'));"
rsHor.open vSql,dbReserv,1,2,1

TabHoraire is your table
NoLocal is your field
B1203 is your search criteria


I'm not an SQL programmer so i just open Access make my query and then hit the SQL(top left) button copy the SQL and voila...

Sharky99 >:):O>
 
ie. response.write(rsHor("NoLocal"))

That's it Have fun...

Sharky99 >:):O>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top