Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

#Name? error with print

Discussion in 'Information Technology' started by John, Jul 28, 2006.

Tags:
  1. John

    John
    Expand Collapse
    Guest

    I just set up a form and macro to run a report. It looks great on the
    preview screen, but I get a #Name? error for the date parameters when I do
    the print. It looks fine on the screen though. What's up? Thanks.
     
  2. Loading...


  3. Steve Schapel

    Steve Schapel
    Expand Collapse
    Guest

    John,

    Where is the missing data supposed to come from? Is it stored in a
    table, which is part of the report's record source? Is it referenced to
    a control on a form? If the latter, is the form open at the time that
    you try to print the report? Otherwise, is it supplied by the user in
    response to a prompt because you are using a Parameter Query?

    --
    Steve Schapel, Microsoft Access MVP


    John wrote:
    > I just set up a form and macro to run a report. It looks great on the
    > preview screen, but I get a #Name? error for the date parameters when I do
    > the print. It looks fine on the screen though. What's up? Thanks.
    >
    >
     
  4. John

    John
    Expand Collapse
    Guest

    It is entered by me in response to a prompt on the Form, setting the date
    parameters for the query/report.

    "Steve Schapel" <schapel@mvps.org.ns> wrote in message
    news:OraGQTadGHA.4932@TK2MSFTNGP03.phx.gbl...
    > John,
    >
    > Where is the missing data supposed to come from? Is it stored in a table,
    > which is part of the report's record source? Is it referenced to a
    > control on a form? If the latter, is the form open at the time that you
    > try to print the report? Otherwise, is it supplied by the user in
    > response to a prompt because you are using a Parameter Query?
    >
    > --
    > Steve Schapel, Microsoft Access MVP
    >
    >
    > John wrote:
    >> I just set up a form and macro to run a report. It looks great on the
    >> preview screen, but I get a #Name? error for the date parameters when I
    >> do the print. It looks fine on the screen though. What's up? Thanks.
     
  5. John

    John
    Expand Collapse
    Guest

    Also, I think the macro may close the form before it's printed. there-in
    may lie the problem.

    "John" <spicer8@adelphia.net> wrote in message
    news:_amdnYYGHutoG_nZnZ2dneKdnZydnZ2d@adelphia.com...
    > It is entered by me in response to a prompt on the Form, setting the date
    > parameters for the query/report.
    >
    > "Steve Schapel" <schapel@mvps.org.ns> wrote in message
    > news:OraGQTadGHA.4932@TK2MSFTNGP03.phx.gbl...
    >> John,
    >>
    >> Where is the missing data supposed to come from? Is it stored in a
    >> table, which is part of the report's record source? Is it referenced to
    >> a control on a form? If the latter, is the form open at the time that
    >> you try to print the report? Otherwise, is it supplied by the user in
    >> response to a prompt because you are using a Parameter Query?
    >>
    >> --
    >> Steve Schapel, Microsoft Access MVP
    >>
    >>
    >> John wrote:
    >>> I just set up a form and macro to run a report. It looks great on the
    >>> preview screen, but I get a #Name? error for the date parameters when I
    >>> do the print. It looks fine on the screen though. What's up? Thanks.

    >
    >
     
  6. fredg

    fredg
    Expand Collapse
    Guest

    On Fri, 12 May 2006 09:14:45 -0400, John wrote:

    > Also, I think the macro may close the form before it's printed. there-in
    > may lie the problem.
    >
    > "John" <spicer8@adelphia.net> wrote in message
    > news:_amdnYYGHutoG_nZnZ2dneKdnZydnZ2d@adelphia.com...
    >> It is entered by me in response to a prompt on the Form, setting the date
    >> parameters for the query/report.
    >>
    >> "Steve Schapel" <schapel@mvps.org.ns> wrote in message
    >> news:OraGQTadGHA.4932@TK2MSFTNGP03.phx.gbl...
    >>> John,
    >>>
    >>> Where is the missing data supposed to come from? Is it stored in a
    >>> table, which is part of the report's record source? Is it referenced to
    >>> a control on a form? If the latter, is the form open at the time that
    >>> you try to print the report? Otherwise, is it supplied by the user in
    >>> response to a prompt because you are using a Parameter Query?
    >>>
    >>> --
    >>> Steve Schapel, Microsoft Access MVP
    >>>
    >>>
    >>> John wrote:
    >>>> I just set up a form and macro to run a report. It looks great on the
    >>>> preview screen, but I get a #Name? error for the date parameters when I
    >>>> do the print. It looks fine on the screen though. What's up? Thanks.

    >>
    >>


    What do you mean you 'think' the macro may close the form.

    Whether the form is closed by this macro or some other method, the
    form must be open while the report is previewed AND printed.
    --
    Fred
    Please respond only to this newsgroup.
    I do not reply to personal e-mail
     

Share This Page