I would like to have my from read the value of a column of a table I created and then check it against an IF statement.
Here the code:
If
![tblEmpLocation].Column(2) = 1 Then
Me.txttesting1.Visible = True
Me.txtTesting2.Visible = True
Me.lsttesting1.Visible = True
Me.lsttesting2.Visible = True
Else
Me.txttesting1.Visible = False
Me.txtTesting2.Visible = False
Me.lsttesting1.Visible = False
Me.lsttesting2.Visible = False
End If
The value I want is in the second column of the table anf I want it to make something visiable or not based on it's value of 1 or 2. I keep gatting an error saying that it can not find the field 'table'. this is in Access 97.
Thank you in advance.
Here the code:
If
Me.txttesting1.Visible = True
Me.txtTesting2.Visible = True
Me.lsttesting1.Visible = True
Me.lsttesting2.Visible = True
Else
Me.txttesting1.Visible = False
Me.txtTesting2.Visible = False
Me.lsttesting1.Visible = False
Me.lsttesting2.Visible = False
End If
The value I want is in the second column of the table anf I want it to make something visiable or not based on it's value of 1 or 2. I keep gatting an error saying that it can not find the field 'table'. this is in Access 97.
Thank you in advance.