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  

Revision Tracking



 
 
Thread Tools Display Modes
  #1  
Old June 13th, 2009, 12:09 PM posted to microsoft.public.access.tablesdbdesign
Anand
external usenet poster
 
Posts: 63
Default Revision Tracking

Hello,
Using an A2k Database. Have a BOM table containing a primary key combined by
two columns - BOMID and RevNo. The RevNo column is to track revisions to the
BOM table. The system increments the RevNo column after each revision. The
BOMID column remains the same for all revisions.

The system works fine till I create child tables based on the BOM Table (For
eg. a Purchase Order Table). The child table references both BOMID and RevNo
as foreign keys. When a user revises a BOM the child record - referencing an
earlier revision - 'disappears' from reports. It does not stand to business
logic that a minor change in a BOM record (say, a change in Dwg Code which
does not affect the PO Table) means the Purchase Orders raised for the BOM
record become invalid and must be re-created or re-assigned the correct
foreign key.

Is there any way to work around this problem. What happens in Access is
technically correct but leads to practical difficulties.

TIA
Anand


  #2  
Old June 13th, 2009, 01:09 PM posted to microsoft.public.access.tablesdbdesign
Rick Brandt
external usenet poster
 
Posts: 4,354
Default Revision Tracking

On Sat, 13 Jun 2009 04:09:01 -0700, Anand wrote:

Hello,
Using an A2k Database. Have a BOM table containing a primary key
combined by two columns - BOMID and RevNo. The RevNo column is to track
revisions to the BOM table. The system increments the RevNo column after
each revision. The BOMID column remains the same for all revisions.

The system works fine till I create child tables based on the BOM Table
(For eg. a Purchase Order Table). The child table references both BOMID
and RevNo as foreign keys. When a user revises a BOM the child record -
referencing an earlier revision - 'disappears' from reports. It does not
stand to business logic that a minor change in a BOM record (say, a
change in Dwg Code which does not affect the PO Table) means the
Purchase Orders raised for the BOM record become invalid and must be
re-created or re-assigned the correct foreign key.

Is there any way to work around this problem. What happens in Access is
technically correct but leads to practical difficulties.

TIA
Anand


There is no requirement that the PK of one table must be the foreign key
in related tables. Just use the BOMID by itself for the relationship to
POs.


--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
  #3  
Old June 14th, 2009, 01:30 AM posted to microsoft.public.access.tablesdbdesign
Steve[_72_]
external usenet poster
 
Posts: 190
Default Revision Tracking

You ought to consider changing the design of your tables to:
TblBOM
BOMID
etc

TblBOMRevision
BOMRevisionID
BOMID
RevisionNum
RevisionDate
RevisionDesc

You have a one-to-many relationship between BOM and revision.

Steve






"Anand" wrote in message
...
Hello,
Using an A2k Database. Have a BOM table containing a primary key combined
by
two columns - BOMID and RevNo. The RevNo column is to track revisions to
the
BOM table. The system increments the RevNo column after each revision. The
BOMID column remains the same for all revisions.

The system works fine till I create child tables based on the BOM Table
(For
eg. a Purchase Order Table). The child table references both BOMID and
RevNo
as foreign keys. When a user revises a BOM the child record - referencing
an
earlier revision - 'disappears' from reports. It does not stand to
business
logic that a minor change in a BOM record (say, a change in Dwg Code which
does not affect the PO Table) means the Purchase Orders raised for the BOM
record become invalid and must be re-created or re-assigned the correct
foreign key.

Is there any way to work around this problem. What happens in Access is
technically correct but leads to practical difficulties.

TIA
Anand




  #4  
Old June 14th, 2009, 03:58 PM posted to microsoft.public.access.tablesdbdesign
StopThisAdvertising
external usenet poster
 
Posts: 334
Default Revision Tracking


"Steve" help_available_at_very_reasonable_rates@contactme .com schreef in
bericht ...
You ought to consider changing the design of your tables to:


Steve: You ought to consider changing your attitude and behaviour here...

Arno R


  #5  
Old June 15th, 2009, 11:39 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Revision Tracking

Why not have a one-to-many from BOM to RevNo table? Then you would have n
problem of BOM to Orders.

"Anand" wrote:

Hello,
Using an A2k Database. Have a BOM table containing a primary key combined by
two columns - BOMID and RevNo. The RevNo column is to track revisions to the
BOM table. The system increments the RevNo column after each revision. The
BOMID column remains the same for all revisions.

The system works fine till I create child tables based on the BOM Table (For
eg. a Purchase Order Table). The child table references both BOMID and RevNo
as foreign keys. When a user revises a BOM the child record - referencing an
earlier revision - 'disappears' from reports. It does not stand to business
logic that a minor change in a BOM record (say, a change in Dwg Code which
does not affect the PO Table) means the Purchase Orders raised for the BOM
record become invalid and must be re-created or re-assigned the correct
foreign key.

Is there any way to work around this problem. What happens in Access is
technically correct but leads to practical difficulties.

TIA
Anand


  #6  
Old June 17th, 2009, 05:53 AM posted to microsoft.public.access.tablesdbdesign
Anand
external usenet poster
 
Posts: 63
Default Revision Tracking

Hello,
Thanks for the inputs. Will try it out. Still have some doubts about how
this will work out for further integration with other processes. Will check.

Thanks
Anand

"KARL DEWEY" wrote:

Why not have a one-to-many from BOM to RevNo table? Then you would have n
problem of BOM to Orders.

"Anand" wrote:

Hello,
Using an A2k Database. Have a BOM table containing a primary key combined by
two columns - BOMID and RevNo. The RevNo column is to track revisions to the
BOM table. The system increments the RevNo column after each revision. The
BOMID column remains the same for all revisions.

The system works fine till I create child tables based on the BOM Table (For
eg. a Purchase Order Table). The child table references both BOMID and RevNo
as foreign keys. When a user revises a BOM the child record - referencing an
earlier revision - 'disappears' from reports. It does not stand to business
logic that a minor change in a BOM record (say, a change in Dwg Code which
does not affect the PO Table) means the Purchase Orders raised for the BOM
record become invalid and must be re-created or re-assigned the correct
foreign key.

Is there any way to work around this problem. What happens in Access is
technically correct but leads to practical difficulties.

TIA
Anand


 




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 07:40 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.