Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

#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
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page