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. |
|
|
Thread Tools | Display Modes |
#21
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|