Hi all.
I have a Combobox on a form, What I am trying to do is before the record is saved check that a selection has been made. What I have so far is:-
Private Sub Command17_Click()
On Error GoTo Err_Command17_Click
DoCmd.Save
If IsNull(Combo2) Then
MsgBox "You must select a supplier, If the job is in house, select in house"
End If
DoCmd.Close
Forms!frmMainClient![frmJob].Form.Requery
Exit_Command17_Click:
Exit Sub
Err_Command17_Click:
MsgBox Err.Description
Resume Exit_Command17_Click
End Sub
Many thanks for any help.
Kind regards
I have a Combobox on a form, What I am trying to do is before the record is saved check that a selection has been made. What I have so far is:-
Private Sub Command17_Click()
On Error GoTo Err_Command17_Click
DoCmd.Save
If IsNull(Combo2) Then
MsgBox "You must select a supplier, If the job is in house, select in house"
End If
DoCmd.Close
Forms!frmMainClient![frmJob].Form.Requery
Exit_Command17_Click:
Exit Sub
Err_Command17_Click:
MsgBox Err.Description
Resume Exit_Command17_Click
End Sub
Many thanks for any help.
Kind regards
Last edited: