Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Access Query - I need to reverse it. Ugh.


  • Please log in to reply

#1
magusbuckley

magusbuckley

    Member

  • Member
  • PipPipPip
  • 626 posts
Well, here's the fictitious setup...

I sell canned beverages at local events from a booth. When I return, I get my inventory into an access dbase program I designed.

I created, or am trying to create rather, a report that will show me what I sold at the last event. In my mind, this is how it would work - A query would look at sales and pull all data from the most recent date only (which would be the last booth I worked no matter if it was yesterday, last week, last month, etc.) and display how many of each product I sold on that day.

The problem I'm having is that I set the query up as "Select" query with "Totals" and set the date field to "Max". In the same query, my items are listed as "Group By". So now, the query is pulling the last date I sold each item, not how many of each item I sold on the last date. It's totally backwards from what I'm trying to achieve.

Let's run through that current method I have set up so you can see what I mean. If, on the first of March I sold Cokes and Sprites, and then, at another booth on the 15th I only sold Cokes. When I run this report, I'd like it to pull up ONLY the sales from the 15th. In this example, I want it to only show me the cokes sold on the 15th as no Sprites were sold on that day. Instead, the query is showing me the latest date each item was sold so I'm seeing Sprites for the 1st and Cokes for the 15th.

I understand why it's doing this, but I'm not coming up with a way to show only items sold on the most recent date.

Any ideas?

Thanks,

Magus
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP