V
Vel
Hello,
I have a form, with a subform (call it subA), with a
subform (call it subB).
After uptdating a combo box (cboDate) I want to move the
focus from a control in SubA to a control in SubB,
execute a FindRecord action, then move back to SubA. I
get an error stating that the field does not exist in the
current record. Here's my macro:
Action: GotoControl
Control Name: subB
Action: GotoControl
Control Name: txtMSID
^at this point I get the error. In help it says, in
order to move from a form to a control in the subform to
first move to the subform then to the control, which I
did. Anyway, here's the rest of the macro, which I'm
using because I ran into some odd snags with code. If
there are any other errors (or I'm returning to the main
form incorrectly) please point them out.
Action: FindRecord
Find What: forms!frmIntakes!subDetail!cboDate
Action: GotoControl
Control Name: cboDate
Now, there's a bit more, but if I get this part worked
out I'm all set. In my code I had a problem with the
findrecord argument that I could not resolve so I thought
I'd try a macro. Now I can't get the focus to move
around correctly.
Thanks in advance,
Vel.
I have a form, with a subform (call it subA), with a
subform (call it subB).
After uptdating a combo box (cboDate) I want to move the
focus from a control in SubA to a control in SubB,
execute a FindRecord action, then move back to SubA. I
get an error stating that the field does not exist in the
current record. Here's my macro:
Action: GotoControl
Control Name: subB
Action: GotoControl
Control Name: txtMSID
^at this point I get the error. In help it says, in
order to move from a form to a control in the subform to
first move to the subform then to the control, which I
did. Anyway, here's the rest of the macro, which I'm
using because I ran into some odd snags with code. If
there are any other errors (or I'm returning to the main
form incorrectly) please point them out.
Action: FindRecord
Find What: forms!frmIntakes!subDetail!cboDate
Action: GotoControl
Control Name: cboDate
Now, there's a bit more, but if I get this part worked
out I'm all set. In my code I had a problem with the
findrecord argument that I could not resolve so I thought
I'd try a macro. Now I can't get the focus to move
around correctly.
Thanks in advance,
Vel.