DaveTappenden
Programmer
- Jan 16, 2002
- 21
- 0
- 0
Hello,
Imagine if you will a simple application with 3 forms.
frmMenu, frmA, frmB
frmMenu has a command button to hide itself and open frmA
me.visible = false
doCmd.openform "frmA"
frmA (a summary screen) has a command button to close itself before calling frmB (has a timer, so I want it closed)
DoCmd.Close
DoCmd.OpenForm "frmB", , , , acFormAdd
frmB (detail screen) has a command button to close itself and open frmA.
doCmd.close
doCmd.OpenForm "frmA"
IT GOES WRONG HERE
frmA opens correctly, but BEHIND the (now visible) frmMenu. I havent run any code to make frmMenu unhide itself, but simply opening frmA seems to make this happen.
Any ideas why this is happening would be appreciated!
Imagine if you will a simple application with 3 forms.
frmMenu, frmA, frmB
frmMenu has a command button to hide itself and open frmA
me.visible = false
doCmd.openform "frmA"
frmA (a summary screen) has a command button to close itself before calling frmB (has a timer, so I want it closed)
DoCmd.Close
DoCmd.OpenForm "frmB", , , , acFormAdd
frmB (detail screen) has a command button to close itself and open frmA.
doCmd.close
doCmd.OpenForm "frmA"
IT GOES WRONG HERE
frmA opens correctly, but BEHIND the (now visible) frmMenu. I havent run any code to make frmMenu unhide itself, but simply opening frmA seems to make this happen.
Any ideas why this is happening would be appreciated!