G
Guest
I have a form on which I have a control [County] that I want to show/hide
based on the value of [ExpAcct#]. I have placed the following code in the On
Current event:
Private Sub Form_Current()
Me.[County].Visible = ((Me.[ExpAcct#] = "93030") Or (Me.[ExpAcct#] = "93040"))
End Sub
When I move from record to record the event works well. However when I
click on the "Add Record" button I get the message:
"Run time error '94':
Invalid Use of Null"
Can some please let me know what is wrong with my code.
Thanks
based on the value of [ExpAcct#]. I have placed the following code in the On
Current event:
Private Sub Form_Current()
Me.[County].Visible = ((Me.[ExpAcct#] = "93030") Or (Me.[ExpAcct#] = "93040"))
End Sub
When I move from record to record the event works well. However when I
click on the "Add Record" button I get the message:
"Run time error '94':
Invalid Use of Null"
Can some please let me know what is wrong with my code.
Thanks