Hi, I have a database-form with a couple of text boxes in it.
I want to replace the first letter that is written in a
text box with an uppercase letter, so I use the "after update" event and have written the following code:
When the code is performed, I get the following
error, which states "the macro or function set to the beforeupdate or validationrule property for this field is preventing Microsoft Access from saving the data in this field".
Can anyone help me with this? thanks!
I want to replace the first letter that is written in a
text box with an uppercase letter, so I use the "after update" event and have written the following code:
Code:
Private Sub straatenhuisnummer_AfterUpdate() dim anaam as string anaam = Forms!medewerker!straatenhuisnummer.Text anaam = UCase(Left(anaam, 1)) Forms!medewerker!straatenhuisnummer.Text = anaam End Sub
error, which states "the macro or function set to the beforeupdate or validationrule property for this field is preventing Microsoft Access from saving the data in this field".
Can anyone help me with this? thanks!
Comment