![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear reader, I work with two forms. A field in the master form has an After Update event with the instruction Me.Refresh. If this event is activated the other fields in the form are refreshing correct, so far so good. But in case the same field from the same table is updated in a second form and the After Update event in this second form have the same VBA instructions as the main form with only the replacement of Me. with Forms!MasterForm. Then the following instruction will not be executed: Forms!MasterForm_A.Fiel_A = (Forms!MasterForm_A.Fiel_B - Forms!MasterForm_A.Field_C) And in case I place a massage instruction before the calculation instruction it works. MsgBox "Now the calculation will be executed.", vbExclamation It looks like the calculation instruction needs same pause before the execution. Is there anyone who knows way it dos not work without the massage instruction before the calculation instruction. Thanks for any help. Kind regards, Simon The command is probably being executed, but using the old data on the |
#3
| |||
| |||
|
|
Dear reader, I work with two forms. A field in the master form has an After Update event with the instruction Me.Refresh. If this event is activated the other fields in the form are refreshing correct, so far so good. But in case the same field from the same table is updated in a second form and the After Update event in this second form have the same VBA instructions as the main form with only the replacement of Me. with Forms!MasterForm. Then the following instruction will not be executed: Forms!MasterForm_A.Fiel_A = (Forms!MasterForm_A.Fiel_B - Forms!MasterForm_A.Field_C) And in case I place a massage instruction before the calculation instruction it works. MsgBox "Now the calculation will be executed.", vbExclamation It looks like the calculation instruction needs same pause before the execution. Is there anyone who knows way it dos not work without the massage instruction before the calculation instruction. Thanks for any help. Kind regards, Simon |
![]() |
| Thread Tools | |
| Display Modes | |
| |