Hi all,
I have a continuous form (no subforms) that is populated by a query.
On the form I have a checkbox that changes the forms recordsource via SQL ,via VBA.
Each record on the form has a textbox where the user can enter a value. I want a message to be displayed if the checkbox is clicked, only if a value has been entered in one of these textboxes.
I thought I could do this by using :-
But no message is displayed if I enter a number. Where am I going wrong?
Thanks in advance.
I have a continuous form (no subforms) that is populated by a query.
On the form I have a checkbox that changes the forms recordsource via SQL ,via VBA.
Each record on the form has a textbox where the user can enter a value. I want a message to be displayed if the checkbox is clicked, only if a value has been entered in one of these textboxes.
I thought I could do this by using :-
Code:
Private Sub chkEAC_AfterUpdate()
If Me.Dirty = True Then
MsgBox ("Changed")
End If
End Sub
But no message is displayed if I enter a number. Where am I going wrong?
Thanks in advance.