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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Price Levels



 
 
Thread Tools Display Modes
  #21  
Old May 12th, 2008, 08:00 PM posted to microsoft.public.access.forms
shannaj via AccessMonster.com
external usenet poster
 
Posts: 35
Default Price Levels

I can understand what you are saying here, it makes since. So I guess what I
would do is just make my itemid the item number with a number behind it
reflecting which price level it is so I don't run in to a problem with the
primary key. Is that right?

Klatuu wrote:
That would actually be the easy way, but the problem is how your pricelist
table is structured. To do that, it would need to be:
ItemID
PriceLevelID
ItemPrice

The you could join it in a query using the ItemID from your Item table and
the PriceLevelID from the Customer table.
Would it make since to make a table of Price levels with the appropriate
levels indicated with the numbers 1-10 as the primary key, and then look them

[quoted text clipped - 11 lines]
up the correct price for that customer's bracket and then be able to view the
other 9 levels within the combo box. Any recommendations?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200805/1

  #22  
Old May 12th, 2008, 08:11 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Price Levels

In your price level table, the ItemID should not be the primary key. It
should be a foreign key to the item table. You can use an Autonumber primary
key for the price level table.
--
Dave Hargis, Microsoft Access MVP


"shannaj via AccessMonster.com" wrote:

I can understand what you are saying here, it makes since. So I guess what I
would do is just make my itemid the item number with a number behind it
reflecting which price level it is so I don't run in to a problem with the
primary key. Is that right?

Klatuu wrote:
That would actually be the easy way, but the problem is how your pricelist
table is structured. To do that, it would need to be:
ItemID
PriceLevelID
ItemPrice

The you could join it in a query using the ItemID from your Item table and
the PriceLevelID from the Customer table.
Would it make since to make a table of Price levels with the appropriate
levels indicated with the numbers 1-10 as the primary key, and then look them

[quoted text clipped - 11 lines]
up the correct price for that customer's bracket and then be able to view the
other 9 levels within the combo box. Any recommendations?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200805/1


  #23  
Old May 12th, 2008, 08:26 PM posted to microsoft.public.access.forms
shannaj via AccessMonster.com
external usenet poster
 
Posts: 35
Default Price Levels

Perfect, this'll take me a little bit, but thank you so much!

Klatuu wrote:
In your price level table, the ItemID should not be the primary key. It
should be a foreign key to the item table. You can use an Autonumber primary
key for the price level table.
I can understand what you are saying here, it makes since. So I guess what I
would do is just make my itemid the item number with a number behind it

[quoted text clipped - 14 lines]
up the correct price for that customer's bracket and then be able to view the
other 9 levels within the combo box. Any recommendations?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200805/1

  #24  
Old May 13th, 2008, 09:31 PM posted to microsoft.public.access.forms
shannaj via AccessMonster.com
external usenet poster
 
Posts: 35
Default Price Levels

Okay, I have my itemlist changed. But now how do I bring all of this
together in my subform? I have the link between the tblCustomers [pricelevel]
tblPriceLevels[pricelevel] and tblItems[pricelevel]. Do I bring all of this
into a query before I do my itemdetail query? Or do I just bring it in to my
subform somehow? The pricelist I have used before was difficult enough, now
I need to figure out how to look it up. Any assitance you could give would
be much appreciated.

Klatuu wrote:
In your price level table, the ItemID should not be the primary key. It
should be a foreign key to the item table. You can use an Autonumber primary
key for the price level table.
I can understand what you are saying here, it makes since. So I guess what I
would do is just make my itemid the item number with a number behind it

[quoted text clipped - 14 lines]
up the correct price for that customer's bracket and then be able to view the
other 9 levels within the combo box. Any recommendations?


--
Message posted via http://www.accessmonster.com

 




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 03:44 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.