That's not what I posted. Try:Hi again. I have just put the validation statement in the sub-form before update event and it totally ignores it. I click the insert record button, enter details without checking a check box, then click the next button and nothing happens in regards to validation. This is really frustrating!!!
Private Sub Form_BeforeUpdate(Cancel As Integer)
If (Me.chkAssociate + Me.chkBusiness + Me.chkFriend) = 0 Then
MsgBox "Please select at least one contact type"
Cancel = True
End If
End Sub
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.chkAssociate = 0 Or Me.chkBusiness =0 Or Me.chkFriend = 0 Then
MsgBox "Please select at least one contact type"
Cancel = True
End If
try this: http://office.microsoft.com/en-gb/a...se-in-an-earlier-file-format-HA010341553.aspxwill try although I cannot see an option to save in that format. using 2010 version
The "next record" on which form.Hi Bob, I have entered your code and once I select the next record after not selecting a check box the message box opens as expected. Straight after I dismiss the message another message box opens saying "You can't go to the specified record". When I close this and try to select the check box it is not clickable. It is as if the control is locked? thanks again for your time.
I initially posted a db called Kroeger02.mdb, then edited the post a short while ago by replacing the db with one called Kroeger03.mdbThanks for your time. I will have a play around with it and try and learn from it.
Good. Just had another thought. You may want to change the Cycle property of the sub form to Current Record.thanks I got the latest version.