C
Chuck Minarik
I am opening a display form in VBA using the OpenForm
method of the DoCmd command with a WHERE clause to
restrict the records being displayed. If the WHERE clause
generates a recordset with no records, I'd like to display
a MsgBox and cancel the OpenForm Event. How can I
determine if the underlying recordset of the bound form
contains zero records? The Report object has a NoData
Event, but the Form object doesn't. How do I mimic this
function on a form? Thanks.
method of the DoCmd command with a WHERE clause to
restrict the records being displayed. If the WHERE clause
generates a recordset with no records, I'd like to display
a MsgBox and cancel the OpenForm Event. How can I
determine if the underlying recordset of the bound form
contains zero records? The Report object has a NoData
Event, but the Form object doesn't. How do I mimic this
function on a form? Thanks.