F
Fred Boer
Hello
I have a form with two textboxes, txtAddress1 and txtAddress2. I am trying
to create code using the Form AfterUpdate event. Code looks like this:
If Not IsNull(me.txtAddress2) Then
If IsNull(me.txtAddress1) Then
me.txtAddress1=me.txtAddress2
me.txtAddress2=Null
Endif
Endif
The problem is as follows: if the user simply tabs to the next record, the
code runs properly. If the user, however, moves to the next record by either
clicking on the VCR button control, or by pressing "PageDown", the focus
remains on me.txtAddress2, and does not move to the next record.
Why does it work if you "tab" to the next record but not if you move to the
next record in other ways?
I have a form with two textboxes, txtAddress1 and txtAddress2. I am trying
to create code using the Form AfterUpdate event. Code looks like this:
If Not IsNull(me.txtAddress2) Then
If IsNull(me.txtAddress1) Then
me.txtAddress1=me.txtAddress2
me.txtAddress2=Null
Endif
Endif
The problem is as follows: if the user simply tabs to the next record, the
code runs properly. If the user, however, moves to the next record by either
clicking on the VCR button control, or by pressing "PageDown", the focus
remains on me.txtAddress2, and does not move to the next record.
Why does it work if you "tab" to the next record but not if you move to the
next record in other ways?