Validation not working

W

Widemonk

I have a textbox that should hold a value no greater than 250 but the
validation doesnt work.

If...
Validation Rule: =[textboxname]>250
or
Validation Rule: =[textboxname]=250

The error message appears regardless of the value in my text box.

If...
Validation Rule: =[textboxname]<250

The error message does NOT appear, regardless of the value in my text box.

The textbox Format is 'General Number' and in its related table, the field
has a data type 'Number', field size 'Double'.

Whats wrong ???

Thanks in advance.
 
V

Van T. Dinh

Don't use the TextBox name. Use:

--
HTH
Van T. Dinh
MVP (Access)



Widemonk said:
I have a textbox that should hold a value no greater than 250 but the
validation doesnt work.

If...
Validation Rule: =[textboxname]>250
or
Validation Rule: =[textboxname]=250

The error message appears regardless of the value in my text box.

If...
Validation Rule: =[textboxname]<250

The error message does NOT appear, regardless of the value in my text box.

The textbox Format is 'General Number' and in its related table, the field
has a data type 'Number', field size 'Double'.

Whats wrong ???

Thanks in advance.
 
W

Widemonk

Gotcha, thanks :D

Van T. Dinh said:
Don't use the TextBox name. Use:

--
HTH
Van T. Dinh
MVP (Access)



Widemonk said:
I have a textbox that should hold a value no greater than 250 but the
validation doesnt work.

If...
Validation Rule: =[textboxname]>250
or
Validation Rule: =[textboxname]=250

The error message appears regardless of the value in my text box.

If...
Validation Rule: =[textboxname]<250

The error message does NOT appear, regardless of the value in my text box.

The textbox Format is 'General Number' and in its related table, the field
has a data type 'Number', field size 'Double'.

Whats wrong ???

Thanks in advance.
 
Top