J
James
Software: Access 2007 with 2002/2003 file format.
Goal: Do not show report property sheet during visual basic editing of
report.
Problem: Report property sheet is still appearing when open a report in
design mode in Visual Basic even though use both Echo False and SetWarnings
False
Review of Office Help: The help for “Echo Macro Action†indicates
“The Echo action doesn't suppress the display of modal dialog boxes, such as
error messages, or pop-up forms, such as property sheets. You can use dialog
boxes and pop-up forms to gather or display information, even if echo is
turned off. To suppress all message or dialog boxes except error message
boxes and dialog boxes that require the user to enter information, use the
SetWarnings action.
If taken literally the above indicates that SetWarnings will not hide pop-up
forms such as property sheets. What does?
Example of Code resulting in Undesired Result:
....
DoCmd.Echo False
DoCmd.SetWarnings False
DoCmd.OpenReport "rpt_BO-AllBDActivity", acDesign
....
Goal: Do not show report property sheet during visual basic editing of
report.
Problem: Report property sheet is still appearing when open a report in
design mode in Visual Basic even though use both Echo False and SetWarnings
False
Review of Office Help: The help for “Echo Macro Action†indicates
“The Echo action doesn't suppress the display of modal dialog boxes, such as
error messages, or pop-up forms, such as property sheets. You can use dialog
boxes and pop-up forms to gather or display information, even if echo is
turned off. To suppress all message or dialog boxes except error message
boxes and dialog boxes that require the user to enter information, use the
SetWarnings action.
If taken literally the above indicates that SetWarnings will not hide pop-up
forms such as property sheets. What does?
Example of Code resulting in Undesired Result:
....
DoCmd.Echo False
DoCmd.SetWarnings False
DoCmd.OpenReport "rpt_BO-AllBDActivity", acDesign
....