Re: Multiple queries-Want only 1 report
- From: Bonnie A <bonnielynnw@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Aug 2007 07:56:02 -0700
Hey Jeff!
Thanks bunches for the quick reply. I like the unbound controls usage.
Deinitely have a use for your advice.
I appreciate your time!
--
Bonnie W. Anderson
Cincinnati, OH
"Jeff Boyce" wrote:
Bonnie.
Another approach might be to start with a form...
If you have a form from which the billings are "ordered", you could add
three controls corresponding to your "billed", "rebilled", "final" values.
Don't bind them to the underlying fields, just use them as containers.
Add a <Send Bill> command button that opens the report.
Now go to a single query and modify the Selection Criterion "cells" under
these three fields in your query. Point each at its respective
setting/container on the form, using something like:
Forms![YourOrderFormName]![YourBilledControlName]
and
Forms![YourOrderFormName]![YourReBilledControlName]
and
...
Use the query as the source for your report.
This will only work if the form is open. Open the form, set the Billed,
ReBilled and Final controls the way you want them. Click the button.
JOPO (just one person's opinion)
--
Regards
Jeff Boyce
www.InformationFutures.net
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/
Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/
"Bonnie A" <bonnielynnw@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:990A3B02-0138-4600-9452-1E1F40E1FBA2@xxxxxxxxxxxxxxxx
Hi everyone! I'm using A02 on XP. Not a programmer but can work a littleVB
in event procedures.and
I have a report that is a bill for services rendered. We bill, rebill,
then final bill.I've
My queries all have the same fields BUT I want to use just one report.
researched it here and found a few items but only saw one that said "do ita
programmatically" and the reply was "ok" and one other that said to create
form with the query list and create a union query for the report.when
My logic path is this:...when I bill, the criteria includes [Billed] is No
and [ReBill] and [FinalBill] are Null (then [Billed] is updated to Yes);
I rebill, the criteria includes [Billed] is Yes and [ReBill] and[FinalBill]
are Null (then [Rebilled] is updated to Yes); and lastly, [Billed] andinitial
[Rebilled] are Yes and [FinalBill] is Null. In each case after the
billing I also filter out those where [Paid] is Yes."programmically"
Would a list box with the queries be best utilized with the
or "union query" approach? Is there a better way for my example? I'mpretty
sure I understand the union query one but wanted some advice first.the
Thank you all in advance for all the time you put into helping folks on
newsgroups!
--
Bonnie W. Anderson
Cincinnati, OH
- References:
- Re: Multiple queries-Want only 1 report
- From: Jeff Boyce
- Re: Multiple queries-Want only 1 report
- Prev by Date: Re: Multiple queries-Want only 1 report
- Next by Date: Re: crosstab qry as report source breaks Access2007
- Previous by thread: Re: Multiple queries-Want only 1 report
- Next by thread: Re: Multiple queries-Want only 1 report
- Index(es):
Relevant Pages
|