J
John
Hi
I need to check which textbox controls on a form have their value changed. I
am using the below code to achieve this.
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
If (IsNull(ctl.OldValue) And Not IsNull(ctl.Value)) Or
(IsNull(ctl.Value) And Not IsNull(ctl.OldValue)) Then
End If
End If
Next ctl
Problem is I am getting a "The expression you entered has a field, control,
or property name that Events 2006 can't find" error on the line;
If (IsNull(ctl.OldValue) And Not IsNull(ctl.Value)) Or
(IsNull(ctl.Value) And Not IsNull(ctl.OldValue)) Then
What is the problem and how can I fix it?
Thanks
Regards
I need to check which textbox controls on a form have their value changed. I
am using the below code to achieve this.
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
If (IsNull(ctl.OldValue) And Not IsNull(ctl.Value)) Or
(IsNull(ctl.Value) And Not IsNull(ctl.OldValue)) Then
End If
End If
Next ctl
Problem is I am getting a "The expression you entered has a field, control,
or property name that Events 2006 can't find" error on the line;
If (IsNull(ctl.OldValue) And Not IsNull(ctl.Value)) Or
(IsNull(ctl.Value) And Not IsNull(ctl.OldValue)) Then
What is the problem and how can I fix it?
Thanks
Regards