L
Lynn Trapp
John,
If you are referring to selecting 205055 via a combo box, then the
BeforeUpdate event of the FORM will be AFTER the selection occurs. The
BeforeUpdate event of the form occurs just prior to updating the record --
most often when you are moving to a new record.
I still think your design is going to produce some rather bizarre results.
It looks like you are trying to do this the hard way. A bill of materials
works as a top down hierarchical structure and trying to make something both
a parent and a child to the same record is not easy to model. While you can
physically enter the values into the tables, I won't make any guarantees
about what results you will get after you start trying to write queries
against this model.
Consider this. If 12345 is a Finished Good then it will be made up of
various elements. While it is possible that a Finished Good may also be made
up of other Finished Goods, there has to be a top level Finished Good
somewhere. It doesn't look to me like you are allowing for that in your
model.
--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm
205055 as being associated with 12345 then I need the record of 205055 being
associated with 12345 to be created. It seems to me a simple matter of
having a record duplicating itself in reverse. However, I'm a complete
novice when it comes to building Before/AfterUpdates. This example looks
just like this in tblProfilesAssociations:
If you are referring to selecting 205055 via a combo box, then the
BeforeUpdate event of the FORM will be AFTER the selection occurs. The
BeforeUpdate event of the form occurs just prior to updating the record --
most often when you are moving to a new record.
I still think your design is going to produce some rather bizarre results.
It looks like you are trying to do this the hard way. A bill of materials
works as a top down hierarchical structure and trying to make something both
a parent and a child to the same record is not easy to model. While you can
physically enter the values into the tables, I won't make any guarantees
about what results you will get after you start trying to write queries
against this model.
Consider this. If 12345 is a Finished Good then it will be made up of
various elements. While it is possible that a Finished Good may also be made
up of other Finished Goods, there has to be a top level Finished Good
somewhere. It doesn't look to me like you are allowing for that in your
model.
--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm
is something to happen AFTER I make a selection. For example, if I selectJohnLute said:Thanks, Lynn. I think we're getting closer. However, what I'm looking for
205055 as being associated with 12345 then I need the record of 205055 being
associated with 12345 to be created. It seems to me a simple matter of
having a record duplicating itself in reverse. However, I'm a complete
novice when it comes to building Before/AfterUpdates. This example looks
just like this in tblProfilesAssociations: