R
Reis Quarteu
Hi, everybody. I'm new here. I would like to find someone out there who could
give a hand in a bunch of errors I'm getting.
I am using Access 2003. I have a 9-fielded table with two Currency data type
fields with their Validation Rule properties set to ">0". I have also set
their Validation Text properties to meaningful Portuguese sentences. Then I
have created a form bound to that only table. The two above mentioned fields
are bound to two text boxes in that form, which in turn is embedded as a
subform of another main form.
When I test my validation rules through the forms, by entering invalid data
(negative numbers) into any of those two text boxes, the validation rules
simply don't work. Instead, I get an undocumented 3316 error code (I simply
can find no information about this runtime error nowhere, either offline or
online, here in the MSDN) in the DataErr parameter of my subform's Error
event. BTW, AccessError(3316) returns "|" (!?!?).
Aren't the validation text supposed to pop up when we enter invalid data at
the form level?
I kept experimenting with it. If I rewrite the validation rule and text
properties into the text boxes, now I receive the equally undocumented 7753
error code through the DataErr parameter of the subform's Error event. The
only way I managed to get my validation text messages to pop up was to code
them in the text boxes' BeforeUpdate events. It doesn't seem to be an
intelligent way to use the Validation Rule and Validation Text properties.
I am losing too much time over this issue. If anybody out there can give me
a helping hand, I would appreciate it very, very much.
Thanks for all your attention.
Reis.
give a hand in a bunch of errors I'm getting.
I am using Access 2003. I have a 9-fielded table with two Currency data type
fields with their Validation Rule properties set to ">0". I have also set
their Validation Text properties to meaningful Portuguese sentences. Then I
have created a form bound to that only table. The two above mentioned fields
are bound to two text boxes in that form, which in turn is embedded as a
subform of another main form.
When I test my validation rules through the forms, by entering invalid data
(negative numbers) into any of those two text boxes, the validation rules
simply don't work. Instead, I get an undocumented 3316 error code (I simply
can find no information about this runtime error nowhere, either offline or
online, here in the MSDN) in the DataErr parameter of my subform's Error
event. BTW, AccessError(3316) returns "|" (!?!?).
Aren't the validation text supposed to pop up when we enter invalid data at
the form level?
I kept experimenting with it. If I rewrite the validation rule and text
properties into the text boxes, now I receive the equally undocumented 7753
error code through the DataErr parameter of the subform's Error event. The
only way I managed to get my validation text messages to pop up was to code
them in the text boxes' BeforeUpdate events. It doesn't seem to be an
intelligent way to use the Validation Rule and Validation Text properties.
I am losing too much time over this issue. If anybody out there can give me
a helping hand, I would appreciate it very, very much.
Thanks for all your attention.
Reis.