J
John
Hi
I am using the below code in one form and it works fine. I copied the same
code into another form in the same app and I get a "Run-time error '2424':
The expression you entered has a field, control, or property name that <my
project> can not find." error. What is the problem and how can I fix it?
Thanks
Regards
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
'Below line gets the '2424' error
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
I am using the below code in one form and it works fine. I copied the same
code into another form in the same app and I get a "Run-time error '2424':
The expression you entered has a field, control, or property name that <my
project> can not find." error. What is the problem and how can I fix it?
Thanks
Regards
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
'Below line gets the '2424' error
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