R
Rick
Can anyone help me with a small glitch I've encountered
in Access XP?
In Access 2000, I was able to switch between subforms by
selecting a drop box in the main form using
the "AfterUpdate" function to hide/unhide similar to this:
me.form1.visible = false
me.form2.visible = true
In XP, I created a form with hidden subforms and instead
of using a drop box to show subforms, I'm trying to use a
text box and "OnClick" function. Problem is, I keep
getting a dialog box that says "You can't hide a control
that has focus." I've tried to reset the focus in
the "OnClick" function similar to this:
Forms!MainForm!TextField1.SetFocus
me.subfrm1.visible = false
me.subfrm2.visible = true
But I still get the same result. Can anyone show me a
way to switch focus from one subform to another?
Thanks in advance!
in Access XP?
In Access 2000, I was able to switch between subforms by
selecting a drop box in the main form using
the "AfterUpdate" function to hide/unhide similar to this:
me.form1.visible = false
me.form2.visible = true
In XP, I created a form with hidden subforms and instead
of using a drop box to show subforms, I'm trying to use a
text box and "OnClick" function. Problem is, I keep
getting a dialog box that says "You can't hide a control
that has focus." I've tried to reset the focus in
the "OnClick" function similar to this:
Forms!MainForm!TextField1.SetFocus
me.subfrm1.visible = false
me.subfrm2.visible = true
But I still get the same result. Can anyone show me a
way to switch focus from one subform to another?
Thanks in advance!