KevinSlater
Registered User.
- Local time
- Today, 14:43
- Joined
- Aug 5, 2005
- Messages
- 249
hello I have 2 drop down list boxes in a form that both contain numbers & would like to prevent the user from selecting them both together, ie the user should only be allowed to select one of the drop down llists & not the other, if they do i would like a message to be displayed if both are selected, i thought the: "is not null" statement might work as shown below but it doesnt, any one know what i need to do?
Private Sub Form_BeforeUpdate(Cancel As Integer)
If FIELD1 & FIELD2 Is Not Null Then
MsgBox "Please select just one "
Cancel = True
End If
End Sub
Private Sub Form_BeforeUpdate(Cancel As Integer)
If FIELD1 & FIELD2 Is Not Null Then
MsgBox "Please select just one "
Cancel = True
End If
End Sub
Last edited: