Fran Lombard
Registered User.
- Local time
- Yesterday, 21:00
- Joined
- Mar 12, 2014
- Messages
- 132
Im working on building a template form that contains a SubForm which only contains 6 command buttons to act as a standard toolbar to handle standard db actions.
New
Save
Delete
DesignMode
PrintPreview
Close
On initialization of the template form, i pass Me to a a Public Property defined as Access.Form so the my ToolbarSubForm is aware of its parent and has access to its properties.
All works great untill i click the PrintPreview Button.
This Botton invokes the standard
DoCmd.RunCommand acCmdPrintPreview
The command seems run fine.
Template form minimizes and the print preview displays - ok so far so good.
However, upon closing the PrintPreview, the Template Form pops back up. BUT, the SubForms Tookbar variable holding the reference to Parent Form has been destroyed and has list its reference.
Looking for possibly an Event that would fire on the Main Template form after it has popped back up so i can reinialize this variable. Cant seem to locate the appropiate event. Both Form_Activate and Form_GotFocus are firing Pre-PrintPreview.
I basically need a Form_AfterPrintPreview event which doesn't exist .. to the best of mt knowledge.
Any ideas?
Thanks Fean
New
Save
Delete
DesignMode
PrintPreview
Close
On initialization of the template form, i pass Me to a a Public Property defined as Access.Form so the my ToolbarSubForm is aware of its parent and has access to its properties.
All works great untill i click the PrintPreview Button.
This Botton invokes the standard
DoCmd.RunCommand acCmdPrintPreview
The command seems run fine.
Template form minimizes and the print preview displays - ok so far so good.
However, upon closing the PrintPreview, the Template Form pops back up. BUT, the SubForms Tookbar variable holding the reference to Parent Form has been destroyed and has list its reference.
Looking for possibly an Event that would fire on the Main Template form after it has popped back up so i can reinialize this variable. Cant seem to locate the appropiate event. Both Form_Activate and Form_GotFocus are firing Pre-PrintPreview.
I basically need a Form_AfterPrintPreview event which doesn't exist .. to the best of mt knowledge.
Any ideas?
Thanks Fean