Do not open form if listbox is empty

3699wat

Registered User.
Local time
Today, 03:11
Joined
Oct 28, 2002
Messages
83
Need help with the code on the on click event of a command button on formA to stop formB from opening if the listbox on formB is empty
 
Try:

If not IsNull(ListBox) Then
DoCmd.OpenForm "FormName"
End If

You can add an 'Else' line to make a msgbox if it's null.
 

Users who are viewing this thread

Back
Top Bottom