Re: By Year/Quarter
- From: John Vinson <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 24 Nov 2006 11:26:12 -0700
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: chickalina
- 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
- Prev by Date: Re: primary key from 2 diff tables
- Next by Date: Re: how do i resize a picture and keep the size?
- Previous by thread: Re: By Year/Quarter
- Next by thread: Re: By Year/Quarter
- Index(es):
Relevant Pages
|