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

Syntax for Record not found on Select

Status
Not open for further replies.

DahMurf

Programmer
Apr 12, 2003
44
US
I've set up a Select statement to grab a specific record. I need to test if the record is not found. Can someone give me the syntax, I can't seem to find it.
Thanks!
 
... Use a Record Set.. .check Record Count
'Check Expired Passwords
Set rs = ThisDB.OpenRecordset("qry_USER_PW",
dbOpenSnapshot)
rs.movefirst
If rs.RecordCount <> 0 Then
'Get List of Who to E-Mail To

Steve Medvid
&quot;IT Consultant & Web Master&quot;
e-Mail: Stephen_Medvid@GMACM.com

Chester County, PA Residents
Please Show Your Support...
 
Thanks so much, that did the trick! I'm a COBOL nerd so I'm still learning the SOP's of VBA. I know what I want to do, just can't always figure out how to code it correctly. My installed help screens are incomplete so I tend to stumble a bit!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top