Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / December 2006

Tip: Looking for answers? Try searching our database.

Empty Recordset

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Pockmire - 20 Dec 2006 21:28 GMT
How can I test to see if a query is returning an empty recordset?
Douglas J. Steele - 20 Dec 2006 21:52 GMT
If you're using OpenRecordset to open it, try:

Set rs = db.OpenRecordset(SQL)
If rs.BOF And rs.EOF Then
' It's empty
Else
' It's not empty
End If

If you have something else in mind, please give more details.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> How can I test to see if a query is returning an empty recordset?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.