T
Tim
I have a field, [CLASS] that bound to a textbox on the form. Depending on the
value of this field, I want other fields will show up or not. The code in the
form_Open is following.
If IsNull(Me!CLASS.Value) AND Me!CLASS.Value <> "Biology*" Then
Me!lblEmptyPrompt.Visible = True
'All control on the form will be invisible
ElseIf Me!CLASS.Value Like "Biology*" then
'All control on the form will be visible
End If
When I open the form, there is an error pops up, run-time error '2427': "You
entered an expression that has no value". I don't know why the error pops up
because I already coded for the Null or <> "Biology*" cases. How can I fix it?
Thank you for your help in advance.
value of this field, I want other fields will show up or not. The code in the
form_Open is following.
If IsNull(Me!CLASS.Value) AND Me!CLASS.Value <> "Biology*" Then
Me!lblEmptyPrompt.Visible = True
'All control on the form will be invisible
ElseIf Me!CLASS.Value Like "Biology*" then
'All control on the form will be visible
End If
When I open the form, there is an error pops up, run-time error '2427': "You
entered an expression that has no value". I don't know why the error pops up
because I already coded for the Null or <> "Biology*" cases. How can I fix it?
Thank you for your help in advance.