Dave Elliott said:
			
		
	
	
		
		
			Yes 777 is the name of my textbox, however the code still does not
work ? Is it that the number in 777 is a negative amount? which is
what I am checking for?
In other words, the customer has overpaid!
	
		
			
				Dirk Goldgar said:
			
		
	
	
		
		
			777 is a negative number for the criteria needed
That is it is lower than zero, i.e. ($2.00)
777 is a TextBox and on the main form.
So, if the value of the textbox 777 is less than zero the run code
If 777 < 0 Then
CI30.Visible = True
End If
Are you saying that "777" is the *name* of a text box on the form?
Then you'd better make that clear to Access:
If Me![777] < 0 Then
CI30.Visible = True
End If
		
		
	 
		 
		
	 
In what way does the code "not work"?  Do you get an error message, or
does nothing happen, or what?
You mentioned that the text box [777] is on the "main form".  Is this
code running on a subform of that main form  If so, you need to tell
Access that [777] is not on this form, but on its parent form:
If Me.Parent![777] < 0 Then
CI30.Visible = True
End If
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)