I currently have a form which selects names from one combo box, then uses a second combo box (combo96)to select which event that person has been to. This works fine.
However, what I have now been asked to do is to add a message/warning box to show on screen if a particular field on the form has already been filled in for the that record.
I'm trying, therefore, to add more lines to the code in combo96 so that after it is updated with the selected event, it will look in the date_field, and bring up a warning message if the date field is not null.
The existing combo box is as follows:-
Private Sub Combo96_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[attending_id] = " & Me![Combo96]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
I can't work out what I need to add to the code above to then get the system to check the field called "date_field" and then bring a warning box if it is already full.
Any help would be much appreciated. Thank you.
However, what I have now been asked to do is to add a message/warning box to show on screen if a particular field on the form has already been filled in for the that record.
I'm trying, therefore, to add more lines to the code in combo96 so that after it is updated with the selected event, it will look in the date_field, and bring up a warning message if the date field is not null.
The existing combo box is as follows:-
Private Sub Combo96_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[attending_id] = " & Me![Combo96]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
I can't work out what I need to add to the code above to then get the system to check the field called "date_field" and then bring a warning box if it is already full.
Any help would be much appreciated. Thank you.