My Access 2002 application is quitting when I use the DoCmd.OpenReport command with - Access has encountered a problem and needs to close (or something similar).
The scenario is - I have a series of subforms which each contain a listbox, user right clicks on an item in listbox and uses shortcut menu to print. Calls a function which determines which subform it was called from and prints appropriate record - record prints okay but access consistently quits. Use the same code for print preview and that works okay.
Anyone have any thoughts on what the problem is? Don't appear to have any problems with other applications.
Thanks in advance...
The scenario is - I have a series of subforms which each contain a listbox, user right clicks on an item in listbox and uses shortcut menu to print. Calls a function which determines which subform it was called from and prints appropriate record - record prints okay but access consistently quits. Use the same code for print preview and that works okay.
Anyone have any thoughts on what the problem is? Don't appear to have any problems with other applications.
Thanks in advance...