G
Gary
Hello,
This one strikes me as odd, so I thought I would drop a line to see if
anyone else has come across it?
I have a form with an underlying table that can be used to enter information
about computer systems. One of the fields is for the MAC Address. I want to
be able to convert the alpha parts to uppercase when the tab key goes to the
next field, so I wrote some code in the AfterUpdate event.
Private Sub MAC_Adress_AfterUpdate()
Me.MAC_Address.text = UCase(Me.MAC_Address.text)
The debugger flags it when I try to move to the next record with this error:
"Run time error '2115'
"The macro of function set to the BeforeUpdate or Validation Rule property
for this field is preventing Microsoft Access from saving data in the
field."
???
There are no BeforeUpdate events, nor are there any Validation Rules in
place. The field is a simple text field in the table. I ran this in VB with
text boxes and it worked fine.
I also tried to flag the text as a String variable, convert it to upper case
and return the String variable to the field, but that generates the same
error.
Thanks for any guidance.
Gary
This one strikes me as odd, so I thought I would drop a line to see if
anyone else has come across it?
I have a form with an underlying table that can be used to enter information
about computer systems. One of the fields is for the MAC Address. I want to
be able to convert the alpha parts to uppercase when the tab key goes to the
next field, so I wrote some code in the AfterUpdate event.
Private Sub MAC_Adress_AfterUpdate()
Me.MAC_Address.text = UCase(Me.MAC_Address.text)
The debugger flags it when I try to move to the next record with this error:
"Run time error '2115'
"The macro of function set to the BeforeUpdate or Validation Rule property
for this field is preventing Microsoft Access from saving data in the
field."
???
There are no BeforeUpdate events, nor are there any Validation Rules in
place. The field is a simple text field in the table. I ran this in VB with
text boxes and it worked fine.
I also tried to flag the text as a String variable, convert it to upper case
and return the String variable to the field, but that generates the same
error.
Thanks for any guidance.
Gary