I would try surrounding the name with square brackets. It is possible that
the + sign in the name is confusing the issue
stdocname = "[macupdateReqPrint+]"
docmd.RunMacro stdocname
docmd.RunCommand acCmdrefresh Page
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
bmac said:
I have the following information in the form:
Private sub Form_Activate()
stdocname = "macupdateReqPrint+"
docmd.RunMacro stdocname
docmd.RunCommand acCmdrefresh Page
the form has information displayed that pulls information from a query.
WHen
I run the query separately I get the information, but not when I use it
via
the Form.
--
bmac
:
do you have an On Error trap in the procedure that opens the report?
are you sure the report you are opening exists and that the query/table
feeding the report exists?
is the report empty and do you have a No Data event.
-Dorian
:
Hello,
Could someone explain the above message to me please.
This problem is happening in an Access database I created. I copied
over
the database and tried to recreate the error but can't.