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

HOW TO GET A RECORD VALID

Status
Not open for further replies.

100dtl

Programmer
Aug 18, 2003
313
0
0
GB
mySQL ="select top 1 EMAIL, password from customers where email = '"&Request.Form("email")&"'"
Response.Write mySQL

set rstemp=conntemp.execute(mySQL)

if rstemp.eof then
....
else



...How come my above code goes to 'else' even though running it in access query box it returns a result?
 
do you only have 1 record in your database? and are you selecting top 1 because you want to retrieve the last record you inserted??

it would probably be better for you to either loop thru the recordset and or sort the table descentding

Just a thought



pinky1.jpg width='75' height='75'
[/tt]
056.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top