B
beovidius
Hi all,
I'm looping with the same problem:
After saving user entries from SubForm1, I need to hide it.
I found many posts talking about the SetFocus requirements.
So, I tried many different methods, none are working, but on a new test
form+subform (works like a charm)
' CODE from the SubForm1
Forms!MAINfrom.SetFocus 'First, I need to send the focus to MAINform
Forms!MAINfrom.NOOP.SetFocus 'NOOP is a textbox located on the MAINform
Forms![MAINfrom]![SubForm1].Form.Visible = False 'then theatrically, I can
hide the Subform1
AXS keeps saying : "Axs can't move to the control NOOP" + fix AND THEN " You
can't hide the control that has the focus "
The parent method also returns an error "can't move focus"
Any idea would be appreciated,
Thx,
Beo
I'm looping with the same problem:
After saving user entries from SubForm1, I need to hide it.
I found many posts talking about the SetFocus requirements.
So, I tried many different methods, none are working, but on a new test
form+subform (works like a charm)
' CODE from the SubForm1
Forms!MAINfrom.SetFocus 'First, I need to send the focus to MAINform
Forms!MAINfrom.NOOP.SetFocus 'NOOP is a textbox located on the MAINform
Forms![MAINfrom]![SubForm1].Form.Visible = False 'then theatrically, I can
hide the Subform1
AXS keeps saying : "Axs can't move to the control NOOP" + fix AND THEN " You
can't hide the control that has the focus "
The parent method also returns an error "can't move focus"
Any idea would be appreciated,
Thx,
Beo