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

I need help, I am tring to pull rec

Status
Not open for further replies.

MikeL91

Programmer
Feb 8, 2001
100
US
I need help, I am tring to pull records from a SQL database based on whatever lastname the client enters into the html page.

I went to the toolbox in interdev and droped RecordSet onto my page, then I went to the SQL bulder and created my SELECT statement:

SELECT FNAME,LNAME
FROM customers

now I only want to get the records that match a variable from Request.Form("Lastname") with is called strLastname. I tried:
WHERE LNAME = strLastname

If I am doing this wrong, or you can help with this code, I thanks you in advance.

If I hardcode the last name, I get the record, but when I try to use the lastname from strlastname it does not work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top