Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Box Limits ?? 1

Status
Not open for further replies.

holdenvn

Programmer
Dec 28, 2002
8
AU
I have got two text boxes on a form where users punch in measurements. When txtmulldist1 is less than txtmulldist2 it brings up a message, which works fine. The error im getting is when txtmulldist1 is greater than 9999 the operation doesn't work. Here is some of the code

If txtMullDist1 < txtMullDist2 Then
MsgBox &quot;...&quot;
End If

i was just wondering if there is any limitaions with the text box or am i missing something. If any one could help me it would be greatly appreciated.
 
Try this one

If cdbl(txtMullDist1.Text) < cdbl(txtMullDist2.Text) Then
MsgBox &quot;...&quot;
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top