Where did you place this code? Also, the control source of the textbox you
are trying to get a value from is a calculated textbox. It may take a second
or two for the textbox to update. The code may have already run at that
point. Instead, use the equation you have in the control source in your code
also. This will get rid of the potential timing problem.
Example:
If Me.NameB.Column(10) = 55 Then
Lbl6.Visible = True
Else
Lbl6.Visible = False
End If
If you wanted to shorten this, you could take advantage of the fact that the
result you are looking for is Visible either True or False and that the
result of your test in the If statement is also either True or False. That
would allow you to change the above to
Lbl6.Visible = (Me.NameB.Column(10) = 55)
Use whichever is less typing for you. If you are changing multiple controls
in the If statement, the If statement may be less typing.