You mean Before Update event, don't you. After is too late.

Signature
Dave Hargis, Microsoft Access MVP
> > I have an Access 2003 database.
> >
[quoted text clipped - 19 lines]
> (me.txtboxname) - change txtboxname to the real name for that
> control.
Hi Bob
Actually, strange as it may seem, it IS the AfterUpdate event you should
use.
You cannot change the data in a control during its BeforeUpdate event
because you get the following message:
The macro or function set to the BeforeUpdate or ValidationRule property for
this field is preventing Microsoft Access from saving the data in the field.

Signature
Good Luck :-)
Graham Mandeno [Access MVP]
Auckland, New Zealand
> You mean Before Update event, don't you. After is too late.
>
[quoted text clipped - 21 lines]
>> (me.txtboxname) - change txtboxname to the real name for that
>> control.
Bob Quintal - 03 Aug 2007 11:48 GMT
> Hi Bob
>
[quoted text clipped - 6 lines]
> ValidationRule property for this field is preventing Microsoft
> Access from saving the data in the field.
I know that. You can use the beforeUpdate, with the control.text
property, which is only available while the control has focus. I've
found this to be a much more complex situation, with possibilities
for error.
And it is possible to use the BeforeUpdate of the Form, but again
you need to ensure that the focus is not on the control you are
trying to uppercase, which can happen

Signature
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
> You mean Before Update event, don't you. After is too late.
No I meant AfterUpdate of the Control, not BeforeUpdate of the
Form.

Signature
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com