| Chat with a LIVE Microsoft
Access Expert! |
||||
|
||||
|
#1
|
|||
|
|||
|
Problem with setting up tables and relationship
Hello....
Here is what I am doing. It is an inventory database that also is an order tracking per se database. When you are entering in the order, the top part is the vendor with an order number, date etc (will show table later). The subform is the order details. This is the tricky part that I am having problems with. In the subform I also need to have the unit that is placing the order for that particular item. IE product 1 pens black ball point unit=exams product 2 pens red ball point unit=admin product 3 paper legal color white unit=personnel I can get it to work but the unit part is what is driving me nuts. I am attaching a very stripped down version no queries etc.... Thanks
__________________
Just trying to figure this damn thing out called "Access" |
| Sponsored Links |
|
#2
|
|||
|
|||
|
I think I figured it out.. I created a conjuction table with the following fields in it:
unitorderID UnitID ProductID That seems to be working.....
__________________
Just trying to figure this damn thing out called "Access" |
|
#3
|
||||
|
||||
|
Mmm....
Beware of a problem you might have with this structure. Any changes you make to the Product data will be applied to old orders as well as new. It is customary to create an Order Details table that is populated with the product data at the time of creation of the order so that subsequent changes are only applied to new orders. Strictly speaking this violates some of the rules of normalisation but is widely accepted as a pragmatic solution.
__________________
You can't always get what you want, but if you try sometimes you may just get what you need - Rolling Stones Cheers, Neil |
|
#4
|
||||
|
||||
|
Quote:
In one of my databases I use a Price list table to provide default descriptions and prices but store the actual information in an order detail table. |
|
#5
|
||||
|
||||
|
Quote:
__________________
You can't always get what you want, but if you try sometimes you may just get what you need - Rolling Stones Cheers, Neil |
|
#6
|
||||
|
||||
|
I think in the real world it is what works that is important. Knowing when to stick to the rules and when to ignore them is the real art of successful development.
|
|
#7
|
|||
|
|||
|
Hi all....
Thank you for the reply's.... I looked at both answers etc.... Can you tell me what other table(s) I would need to add. I am still new at this, having a couple small databases under my belt, but this is by far been the most challenging. Thanks R~
__________________
Just trying to figure this damn thing out called "Access" |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linked tables problem , any suggestion? | nawaray | Tables | 5 | 08-01-2006 04:38 AM |
| Access xp pivot tables problem | andrefrancis | Forms | 0 | 06-03-2006 01:03 AM |
| Date display problem with Firebird ODBC Tables | Rob_rt | Tables | 2 | 09-27-2004 02:49 AM |
| Problem duplicating Access 97 database that has linked tables | jimwei | General | 5 | 07-17-2003 04:32 AM |