Report help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DeanL

    #1

    Report help

    Hi guys,

    I'm in need of a little help with a report I'm setting up on Access
    2000. The report shows data depending on entries on a form that has 7
    fields (Min and Max Cost, Fiscal Year, Min and Max Award Dates,
    Reviewer, Engineer). Some of these fields may have wild card
    characters (*) and some real data in them. The problem I have is when
    the user hits the Go button I need to have some text fields on the
    report show data from the input form or if a wild card character was
    used then the relevant text field on the report should display the
    message "All Reviewers" (or something to that effect.

    The form itself will stay open in the background so there shouldn't be
    any problems pulling data from it but I need some help on, a) how to
    get the data from the form to the report, and b) how to have the
    report read the wild card characters that may be contained on the
    report and substitute the relevant text in place of them.

    Many thanks for any help you can offer.

    All the best, Dean...

  • Larry Linson

    #2
    Re: Report help

    Lacking more specific information, the following general suggestion is
    likely all I can offer: In the Open event of the Report, you can retrieve
    the entries from the Form that is still open, and use VBA code to construct
    the SQL/Query to use as the RecordSource of the Report.

    (And, if you did provide necessary detail, I'm not sure whether some might
    consider that they would be "developing your database for you for free" --
    both SQL and VBA are subjects that require some study and effort.)

    Larry Linson
    Microsoft Access MVP


    "DeanL" <deanpmlonghurs t@yahoo.comwrot e in message
    news:1181757038 .289028.17590@g 37g2000prf.goog legroups.com...
    Hi guys,
    >
    I'm in need of a little help with a report I'm setting up on Access
    2000. The report shows data depending on entries on a form that has 7
    fields (Min and Max Cost, Fiscal Year, Min and Max Award Dates,
    Reviewer, Engineer). Some of these fields may have wild card
    characters (*) and some real data in them. The problem I have is when
    the user hits the Go button I need to have some text fields on the
    report show data from the input form or if a wild card character was
    used then the relevant text field on the report should display the
    message "All Reviewers" (or something to that effect.
    >
    The form itself will stay open in the background so there shouldn't be
    any problems pulling data from it but I need some help on, a) how to
    get the data from the form to the report, and b) how to have the
    report read the wild card characters that may be contained on the
    report and substitute the relevant text in place of them.
    >
    Many thanks for any help you can offer.
    >
    All the best, Dean...
    >

    Comment

    • DeanL

      #3
      Re: Report help

      On Jun 13, 11:11 am, "Larry Linson" <boun...@localh ost.notwrote:
      Lacking more specific information, the following general suggestion is
      likely all I can offer: In the Open event of the Report, you can retrieve
      the entries from the Form that is still open, and use VBA code to construct
      the SQL/Query to use as the RecordSource of the Report.
      >
      (And, if you did provide necessary detail, I'm not sure whether some might
      consider that they would be "developing your database for you for free" --
      both SQL and VBA are subjects that require some study and effort.)
      >
      Larry Linson
      Microsoft Access MVP
      >
      "DeanL" <deanpmlonghu.. .@yahoo.comwrot e in message
      >
      news:1181757038 .289028.17590@g 37g2000prf.goog legroups.com...
      >
      Hi guys,
      >
      I'm in need of a little help with a report I'm setting up on Access
      2000. The report shows data depending on entries on a form that has 7
      fields (Min and Max Cost, Fiscal Year, Min and Max Award Dates,
      Reviewer, Engineer). Some of these fields may have wild card
      characters (*) and some real data in them. The problem I have is when
      the user hits the Go button I need to have some text fields on the
      report show data from the input form or if a wild card character was
      used then the relevant text field on the report should display the
      message "All Reviewers" (or something to that effect.
      >
      The form itself will stay open in the background so there shouldn't be
      any problems pulling data from it but I need some help on, a) how to
      get the data from the form to the report, and b) how to have the
      report read the wild card characters that may be contained on the
      report and substitute the relevant text in place of them.
      >
      Many thanks for any help you can offer.
      >
      All the best, Dean...
      Hmmm, interesting,

      I came here under the belief that this is a group dedicated to helping
      others look for solutions to problems that they have in Access/SQL.
      If I was looking for someone to "developing your database for you for
      free" then I probably wouldn't be looking for just help with a single
      problem. What I did ask was if anyone could help with a single report
      out of the 49 other reports that currently exist in that database and
      the single form out of the other 47 that exist in that database that I
      have already developed along with over 120 queries, 31 tables, 19
      modules and 12 macros. I apologise if this was too much to ask of a
      community that "prides" itself on helping other with less knowledge
      but the only reason I asked is that this task has recently been passed
      to me and there is a very imminent deadline.

      Once again, I apologise and will no longer use this forum.

      Many thanks.

      Comment

      • Larry Linson

        #4
        Re: Report help

        "DeanL" <deanpmlonghurs t@yahoo.comwrot e
        >Lacking more specific information, the following general suggestion is
        >likely all I can offer: In the Open event of the Report, you can retrieve
        >the entries from the Form that is still open, and use VBA code to
        >construct
        >the SQL/Query to use as the RecordSource of the Report.
        >>
        >(And, if you did provide necessary detail, I'm not sure whether some
        >might
        >consider that they would be "developing your database for you for
        >free" --
        >both SQL and VBA are subjects that require some study and effort.)
        Once again, I apologise and will no longer
        use this forum.
        No need to get your feelings hurt and act all snippy.

        Are you conversant in SQL and VBA? That is, I am certain, what it will take
        to address your problem. If you provide me the name of the Form, the name
        of the Controls, the name of the Fields to which the information applies,
        and how it applies, and the SQL of the basic Query, and I write you a few
        lines of code that construct the simple WHERE clause for one or two of the
        criteria, will that be meaningful to you?

        To be honest, from your question, it was not clear that it would be.

        This newsgroup IS here to provide help, and we do (a number of us have
        provided thousands of answers), and sometimes even code. If you can, in
        fact, make use of and extend the VBA code, provide the details of what you
        have and we will see what we can do to help.

        Larry Linson



        Comment

        Working...