The recordsource of your form is either a table or a query. Change your
current code that opens the form to look like this:
If DCount("*","NameOfTableOrQuery") <> 0 Then
DoCmd.OpenForm "NameOfForm"
Else
Msgbox "There is No data In The RecordSource Of The Form",,"Sorry No
Data"
End If
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
(e-mail address removed)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.