Hi Doyce,
If I understand right, your issue is whether what you still have on stock was purchased for the last time.
So you need a query that gives the last receiving date of items with OnHand_01 <> 0. That’s a simple join on the two tables.
Next you use that query in a query that groups on month of the last purchased date. Unless I misunderstand what info is needed, that would do the job I think.
Rob
From: MS_Access_Professionals@yahoogroups.com <MS_Access_Professionals@yahoogroups.com>
Sent: donderdag 5 september 2019 06:08
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Inventory Aging
A couple suggestions:
Every time I read about a specification for "buckets" I create a table of "buckets" with MinBucketValue, MaxBucketValue, and BucketTitle.
Is MAXID numeric? You are using a numeric operator ">=" and yet comparing it with a string.
You are calculating LeftSum in the query and also using LeftSum in other expression. I never do this. I would repeat the LeftSum expression/calculation in place of using LeftSum elsewhere.
You do the same thing with SeqID. Why not use [Transaction History].MAXID?
I would always make sure there is a space prior to the "and". You have ..."'and TNXCDE_15...
This might or might not resolve your issue but I would sleep better.
Duane
From: MS_Access_Professionals@yahoogroups.com <MS_Access_Professionals@yahoogroups.com> on behalf of winberry.doyce@con-way.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com>
Sent: Wednesday, September 4, 2019 2:54 PM
To: MS_Access_Professionals@yahoogroups.com <MS_Access_Professionals@yahoogroups.com>
Subject: [MS_AccessPros] Inventory Aging
Posted by: Rob Koelmans <r.koelmans@metamicro.nl>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
Tidak ada komentar:
Posting Komentar