Validation not working

G

Guest

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top