access query show first date last date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a query that lists the results for bills sent out during a specific
time period. The query returns all vendors that have been billed. Some
vendors have more than one bill. I would like to show the first billing date
and the last billing date and include the total bills sent and the total of
payments received. I have no idea how to set this up. Any help would be
appreciated. Thanks.
 
Give the following query a try:

SELECT VendorName, Min(BillingDate),
Max(BillingDate),Count(Bills),Sum(PaymentsReceived)
From YourTable
Group By VendorName;

Obviously, I don't know your field names, so you will need to supply the
appropriate names in the place of my guesses here.
 
Thank you!

Lynn Trapp said:
Give the following query a try:

SELECT VendorName, Min(BillingDate),
Max(BillingDate),Count(Bills),Sum(PaymentsReceived)
From YourTable
Group By VendorName;

Obviously, I don't know your field names, so you will need to supply the
appropriate names in the place of my guesses here.

--

Lynn Trapp
Microsoft MVP (Access)
www.ltcomputerdesigns.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Make Payment and Deduct from Bill 2
Calculating an Average 11
Excel Excel Show Countdown Date 7
How to add additional info without losing info 4
How to return current customer 3
Query Help, 2
If then Statement 6
Final Results 5

Back
Top