heres my code:
Me refers to my report and walkways is a textbox
If Me.Controls!Walkways.Text > "2" Then
Me.Controls!Walkways.Visible = False
Me.Controls![Walkways Label].Visible = False
End If
I am trying to check to see if the value in my text box is bigger than 2, but since I have my text box referenced to my table it is not letting me do this (this is what I think). This code right now crashes access. So I think I need to change the first line so it points to the value in my table, but I can not seem to reference it correctly. Any help would be great. Thanxs
Me refers to my report and walkways is a textbox
If Me.Controls!Walkways.Text > "2" Then
Me.Controls!Walkways.Visible = False
Me.Controls![Walkways Label].Visible = False
End If
I am trying to check to see if the value in my text box is bigger than 2, but since I have my text box referenced to my table it is not letting me do this (this is what I think). This code right now crashes access. So I think I need to change the first line so it points to the value in my table, but I can not seem to reference it correctly. Any help would be great. Thanxs