A
Afrosheen via AccessMonster.com
Thanks for reading this. Here is my problem. I have two forms I'm working
with. Main menu form {frm_menu} and a sub form called frmbkbox which is
hidding.
The way the subform works is when I get to day 7 that subform appears and has
a button that you click on to perform the backup/copy. Clicking on the button
does perform the backup/copy. Where the problem comes up is when I try to
hide the subform after completion it will not let me because the focus is
still on the frmbackup. It gives me error 2165{You can't hide a control that
has the focus}. I need it to hide it. Here is what I've tried to do
Forms("frm_menu").SetFocus
Forms("frm_menu")!frmBKBox.Visible = False
On the first line I'm trying to set the focus back to the frm_menu.
On the second line I'm trying to hide the frmbkbox.
Thanks
with. Main menu form {frm_menu} and a sub form called frmbkbox which is
hidding.
The way the subform works is when I get to day 7 that subform appears and has
a button that you click on to perform the backup/copy. Clicking on the button
does perform the backup/copy. Where the problem comes up is when I try to
hide the subform after completion it will not let me because the focus is
still on the frmbackup. It gives me error 2165{You can't hide a control that
has the focus}. I need it to hide it. Here is what I've tried to do
Forms("frm_menu").SetFocus
Forms("frm_menu")!frmBKBox.Visible = False
On the first line I'm trying to set the focus back to the frm_menu.
On the second line I'm trying to hide the frmbkbox.
Thanks