Re: By Year/Quarter
- From: chickalina <chickalina@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 24 Nov 2006 11:04:01 -0800
Thanks for the reply, but I don’t think I’m clear:
I want to make this as easy as possible for the data entry person to put the
numbers in… I just want them to have 5 fields to maintain… Q1, Q2, Q3, Q4,
and Reason as follows in a subform:
Q1 Q2 Q3 Q4 Year End Reason (combo box)
2006 20 20 20 20 80 Decline
2007 10 10 10 10 40 Decline
The form/report would calculate year end.
Subsequently, the subform should only show current year plus the next 4.
They are 5 year plans.
"John Vinson" wrote:
On Fri, 24 Nov 2006 08:20:02 -0800, chickalina.
<chickalina@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
thinking along the lines of Excel (which is how the numbers are tracked right
now). You would have the years listed on the left and the Quarters going
across the top.
Should I have 6 tables?
VendorID
Year ID
Quarter1ID
Quarter2ID
Quarter3ID
Quarter4ID
Every vendor with nothing would need to have a blank row for current year in
the subform when you open it up so information can be entered.
Excel is a spreadsheet, a good one.
Access is a relational database.
THEY ARE DIFFERENT.
Applying spreadsheet logic to a relational database will, guaranteed,
get you a faulty design - just as it is doing in your case!
In a database, "fields are expensive, records are cheap". You should
NEVER store data (quarters, say) in fieldnames.
What I would suggest for your database is two tables:
Vendors
VendorID
VendorName
<other info about the vendor as an entity>
VendorSales
VendorID <link to Vendors>
SaleDate <e.g. #6/30/2006# for the 2nd quarter of 2006>
SaleAmount <the sales during that quarter, NOT CUMULATIVE>
That is - store the basic INFORMATION (the amount of sales in each
quarter). You can easily create a Totals Query or a Report which will
group by Vendor, sort by SaleDate, and display years and quarters with
the cumulative amount up to and including that date.
John W. Vinson[MVP]
- Follow-Ups:
- Re: By Year/Quarter
- From: John Vinson
- Re: By Year/Quarter
- References:
- Re: By Year/Quarter
- From: Pat Hartman\(MVP\)
- Re: By Year/Quarter
- From: Pat Hartman\(MVP\)
- Re: By Year/Quarter
- From: chickalina
- Re: By Year/Quarter
- From: chickalina
- Re: By Year/Quarter
- From: John Vinson
- Re: By Year/Quarter
- Prev by Date: Re: primary key from 2 diff tables
- Next by Date: Re: Table Design - Handling field with a mix of null, fixed and varaiable values
- Previous by thread: Re: By Year/Quarter
- Next by thread: Re: By Year/Quarter
- Index(es):
Relevant Pages
|