Hi
I have created a form which contains a subform.
To cut a long story short, I have created a macro that moves the focus to
the subform (GoToControl) and sets a value (SetValue) in the field on the
subform that recieves the focus.
The basic steps of the macro are:
GotoControl [subform]
GoToRecord - First
SetValue
This macro works perfectly when I run it from the Tools-Macro-Run Macro
menu. ie. The value I want setting, is set on the first record in the
subform.
But when I trigger the macro by entering a value in the main form
(AfterUpdate), the GoToRecord - First command moves the focus to the first
record in my main form.
Can anyone explain why the macro works perfectly from the tools menu but not
when I trigger it by the After Update event?
I have run the macro through in single steps and tried everything else I can
think of but I think I am defeated by this one (Which sounds so simple).
Can anyone help?
Thanx