Re: Print report, pass multiple critera

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



A form wouldn't be bad, because currently I am strcitly working with a
back-end. Which means since I am the only one who knows how it works I also
have to use it :(

I'll try and build a form to supply two of the three variables, the start &
end date, the ID is randomly generated via VB code at the time of the
report. Basically we are running a random report on 5 users.


"Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx> wrote in message
news:er88dYHdGHA.4224@xxxxxxxxxxxxxxxxxxxxxxx
Unfortunately, I don't believe you can, because of the report. If you were
strictly trying to open the query, you'd be able to use the Parameters
collection.

You could create a form that has the 3 values on it, and have the
underlying query refer to those fields (You'd have
Forms!MyInputForm!StartDateValue instead of [Start Date] for instance).
The form doesn't even have to be visible, so your users wouldn't even have
to know about it.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Yogi_Bear_79" <nospam@xxxxxxxxxxx> wrote in message
news:lJOdnVd2BYqErf_ZRVn-gw@xxxxxxxxxxxxxx
Sorry apparently I hit a keyboard shortcut and sent before I was done
typing.

Here is an excerpt of my sql statement, than my report is generated from.

WHERE (((tblEZPassTolls.TransactionDate) Between [Start Date] And [End
Date]) AND ((tblPersonnel.IDSA)=[ID?]));

The Query has thre critera required to make it run. How do I edit the
following to pass all three critera from VBA

DoCmd.OpenReport "rptFullFromID", acViewNormal, ,

I intend on haveing VBA ask the user for the start/end dates and it auto
generates the ID critera Each of these values will be held in a
variable. For simplicity just call them A, B, C


Ideally this function would print to my Adobe PDF writer. I have code to
change my default printer to ADOBE for this taks and then back again.
Unless there is a better way, also i still need to find out how to name
the file when it prints to Adobe





.



Relevant Pages

  • Print report, pass multiple critera
    ... Here is an excerpt of my sql statement, than my report is generated from. ... The Query has thre critera required to make it run. ... I intend on haveing VBA ask the user for the start/end dates and it auto ... Ideally this function would print to my Adobe PDF writer. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Print report, pass multiple critera
    ... query refer to those fields (You'd have Forms!MyInputForm!StartDateValue ... Here is an excerpt of my sql statement, than my report is generated from. ... The Query has thre critera required to make it run. ... Ideally this function would print to my Adobe PDF writer. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Help me show quantities based on sizes!
    ... My mistake...the information is from a query based on ... to report in pivot format the quantities column based on ... as soon as I put the critera ="SM" I get nothing. ... >in the IIf expression, ...
    (microsoft.public.access.reports)
  • Help with PopUp Print Form
    ... I usually create a query and put in the ... critera to select the records. ... In your case int would be ... then I have the report point to the ...
    (microsoft.public.access.reports)
  • Re: Adding Date Criteria to Report Heading
    ... In the query, the critera on a date field is set ... >How can I caputure those dates so that when the report ... in the heading of the report I can print the title ...
    (microsoft.public.access.reports)