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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querying a Access Database

Status
Not open for further replies.

jmurrayhead

Programmer
Feb 13, 2004
47
US
I have an access database that I want to create a query form for. I'm not sure how to do it. I want it to have default values in it based on session variables that I have set.
For example, First Name: <textbox value="<%=Session(appName&"x_firstname")%>"></textbox> Last Name: <textbox value="<%=Session(appName&"x_lastname")%>"></textbox>
Then they click the submit button and it retreives all records with the first and last name present.

All help is appreciated. Thanks
 
Yeah, the set objRS = oConn.execute(strSQL) doesn't seem to be working...I removed it and all errors were gone, the query still didn't work. I ended up using FrontPage to create my database and I created a query using the query wizard. The user still has to enter input, but at least it gives me something to work with until I can figure out a way to query automatically from their login session.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top