A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

School Print Shop Database



 
 
Thread Tools Display Modes
  #1  
Old March 8th, 2009, 12:42 PM posted to microsoft.public.access.tablesdbdesign
twodoor55
external usenet poster
 
Posts: 4
Default School Print Shop Database

I have been working on putting together a school print shop database. I am
having trouble understanding how to keep order history. If I make a change
in my products table, it cascades to the old records.

I know that there is an order template, but I need to build it myself to
understand how to fix it when there is a problem.

I am not quite sure how to do this. Help!

Thanks


  #2  
Old March 8th, 2009, 08:14 PM posted to microsoft.public.access.tablesdbdesign
Steve[_57_]
external usenet poster
 
Posts: 598
Default School Print Shop Database

It sounds like you are describing the typical problem with product price.
This problem is overcome by adding another field named ProductPrice to your
order detail table and recording the actual product price in ProductPrice.

Steve



"twodoor55" wrote in message
...
I have been working on putting together a school print shop database. I am
having trouble understanding how to keep order history. If I make a
change
in my products table, it cascades to the old records.

I know that there is an order template, but I need to build it myself to
understand how to fix it when there is a problem.

I am not quite sure how to do this. Help!

Thanks




  #3  
Old March 8th, 2009, 10:21 PM posted to microsoft.public.access.tablesdbdesign
twodoor55
external usenet poster
 
Posts: 4
Default School Print Shop Database

Does that mean, I can't use a look up table and I have to physically put the
cost into the table. Because, I thought if I used a look up table there
would be no chance for error.

Confused on this part.

"Steve" wrote:

It sounds like you are describing the typical problem with product price.
This problem is overcome by adding another field named ProductPrice to your
order detail table and recording the actual product price in ProductPrice.

Steve



"twodoor55" wrote in message
...
I have been working on putting together a school print shop database. I am
having trouble understanding how to keep order history. If I make a
change
in my products table, it cascades to the old records.

I know that there is an order template, but I need to build it myself to
understand how to fix it when there is a problem.

I am not quite sure how to do this. Help!

Thanks





  #4  
Old March 8th, 2009, 11:49 PM posted to microsoft.public.access.tablesdbdesign
Ken Snell MVP
external usenet poster
 
Posts: 275
Default School Print Shop Database

There are two approaches to this.

One, as Steve suggests, is to store the actual price *At The Time Of The
Order* in the table that holds the items for an order.

Two, add a field to your lookup table for Prices, and name this field
EffectiveDate. Use the field to store the date on which that price became
effective. Then, you can use the date of the order to look up the price that
was in effect at that time:

SELECT Top 1 Price
FROM LookUpTable
WHERE EffectiveDate = [OrderDate]
ORDER BY EffectiveDate DESC;

--

Ken Snell
MS ACCESS MVP
http://www.accessmvp.com/KDSnell/


"twodoor55" wrote in message
...
Does that mean, I can't use a look up table and I have to physically put
the
cost into the table. Because, I thought if I used a look up table there
would be no chance for error.

Confused on this part.

"Steve" wrote:

It sounds like you are describing the typical problem with product price.
This problem is overcome by adding another field named ProductPrice to
your
order detail table and recording the actual product price in
ProductPrice.

Steve



"twodoor55" wrote in message
...
I have been working on putting together a school print shop database. I
am
having trouble understanding how to keep order history. If I make a
change
in my products table, it cascades to the old records.

I know that there is an order template, but I need to build it myself
to
understand how to fix it when there is a problem.

I am not quite sure how to do this. Help!

Thanks







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.