I have a text box field that is used for putting in the size in inches of a product we sell. We have several different products that use the same box and all but one group can have decimals 2.25 (as an example). However we have one group that must be to the nearest inch.
What I would like is for the validation to pop up if the user enters a decimal that warns them it's not available and prompts them to correct it. I have the validation and the top and bottom limiters but I cannot figure out how to validate for a decimal entry.
below is my current code:
What I would like is for the validation to pop up if the user enters a decimal that warns them it's not available and prompts them to correct it. I have the validation and the top and bottom limiters but I cannot figure out how to validate for a decimal entry.
below is my current code:
Code:
Case 6, 7 'product 1 and product 2 sngheight = Int(frm.TxtDoorHt.Value / 12) sngwidth = Int(frm.TxtDoorWidth.Value / 12) If (frm.TxtDoorHt.Value >= 78 And frm.TxtDoorHt.Value <= 126) Then bInvalidSize = False Else bInvalidSize = True End If If (frm.TxtDoorWidth.Value >= 48 And frm.TxtDoorHt.Value <= 222) Then bInvalidSize = False Else bInvalidSize = True End If
Comment