J
Joe M.
Hi. I have a subform which when no records are found by the query I would
like to display a message, possibly a msgbox. I have done this successfully
for another project in the nodata event in a report. However, I have found
for a subform that this event does not exist. Therefore after reading some
previous posts I have tried to put this inside the subform's load event as a
test:
If Me.RecordsetClone.RecordCount = 0 Then Stop
What I have found is that the subform loads when the main form loads so this
doesn't work as the subform load event only occurs once upon the loading of
the main form. BTW I use a cmd button in the main form with DoCmd.Requery
"Lookup_results" to lookup my data. Can someone help with this? Thanks for
your time.
Joe M.
like to display a message, possibly a msgbox. I have done this successfully
for another project in the nodata event in a report. However, I have found
for a subform that this event does not exist. Therefore after reading some
previous posts I have tried to put this inside the subform's load event as a
test:
If Me.RecordsetClone.RecordCount = 0 Then Stop
What I have found is that the subform loads when the main form loads so this
doesn't work as the subform load event only occurs once upon the loading of
the main form. BTW I use a cmd button in the main form with DoCmd.Requery
"Lookup_results" to lookup my data. Can someone help with this? Thanks for
your time.
Joe M.