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

recordset no records?

Status
Not open for further replies.

ozpeppers

Programmer
Jul 17, 2001
32
BN
Hi

How do determine if a sql query generated any records? This is to stop an error "No current record" because no records were generated.

ie

mySql = Select * from staff;

RS.Open mySQL, Conn, adOpenDynamic, adLockOptimistic, adCmdUnknown

RS.movefirst - error occurs

Cheers

Mark
 
if not rs.eof then
'we have records
else
'no records returned
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top