Copied field fails to appear immediately

A

Alvin

After Update only fires when you leave the field that was
changed. If you have to have field B reflect the changes
in fild A as they occur, you'll have to use On Change.

But On Change is tricky to use, since it fires each time
any character in the field changes, so you almost
certainly won't have a valid key until after you leave the
field -- making After Update the correct choice.
 
R

Ray

Alvin,

Thanks for your advice.

Ray
-----Original Message-----
After Update only fires when you leave the field that was
changed. If you have to have field B reflect the changes
in fild A as they occur, you'll have to use On Change.

But On Change is tricky to use, since it fires each time
any character in the field changes, so you almost
certainly won't have a valid key until after you leave the
field -- making After Update the correct choice.
-----Original Message-----
I put below code in AfterUpdate event of field A and
expect to see the field B changed immediately. It fails
to appear immediately but after I roll the record upwards
or downwards and come back to that record, the field B
appears correctly. Both fields are of date type. Can
someone help me how to make the field B changed
immediately.

Private Sub Field_A_AfterUpdate()
[tblA.Field B] = [tblA.Field A] + 10
End Sub

Thanks,

Ray

.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top