Hi everyone, hope someone can help me.
Problem:
I have an event on a beforeUpdate of a textbox, which sets another hidden field on the same form. When my focus is in the textbox, and I click a command button, the beforeUpdate runs just fine, but it seems to 'Cancel' the click of the command button, so I have to press the command button once more.
The Textbox is a unbound field with the following code attached (Ignore any syntax errors, its typed from memory):
Purpose of the function is to take the typed password from the unbound field tb_SetPassword, encrypt it and store it in the bound (and hidden) field tb_Pasword, which will then be stored with the user record.
Other Details:
Using Access 2003.
How Can I make the clicked event fire as it should?
Problem:
I have an event on a beforeUpdate of a textbox, which sets another hidden field on the same form. When my focus is in the textbox, and I click a command button, the beforeUpdate runs just fine, but it seems to 'Cancel' the click of the command button, so I have to press the command button once more.
The Textbox is a unbound field with the following code attached (Ignore any syntax errors, its typed from memory):
Code:
private sub tb_SetPassword_BeforeUpdate(Cancel) if nz(me.tb_SetPassword,'')='' then 'Nothing else me.tb_Password=fstrEncrypt(me.tb_SetPassword) end if end sub
Other Details:
Using Access 2003.
How Can I make the clicked event fire as it should?
Comment