dbTalk Databases Forums  

A custom macro in this report has failed to run

comp.databases.ms-access comp.databases.ms-access


Discuss A custom macro in this report has failed to run in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Phil
 
Posts: n/a

Default A custom macro in this report has failed to run - 09-28-2011 , 10:34 AM






I have a form with a lot of fields, combos, subforms etc on it.
There is a print button to print an invoice which runs
DoCmd.OpenReport "RptPaymentRecord", acViewNormal, , "MemHeadOfHouseID = " &
MemHeadOfHouseID which works as expected.

If I change tis to DoCmd.OpenReport "RptPaymentRecord", acViewPreview, ,
"MemHeadOfHouseID = " & MemHeadOfHouseID Again that works as expected.

However if I try to print from the preview (^P) I get the error message “A
custom macro in this report has failed to run” Any ideas why?
Is s it a likely to be a wrong error message and should say something
misleading like “Too many databases open”

Many thanks

Phil

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.