G
Guest
I've got a form that uses subforms to display/enter data associated with a
parent record. The "parent" is each day on a project and the "child" is each
tool used for the project on that day. So... if project number 37, building
a chair, requires green hammer and a blue saw on 11/27/07 the form would tell
me that "chair" with ID 37 is associated with green hammer (tool1) and blue
saw (tool2). And then if project number 37, building a char, requires a
yellow level (tool3) and a purple tape measure (tool4) on 11/28/07, there
would be a new record for 11/28 with that information in the submenu. I want
to write code that will determine if this is the first new child record
associated with the parent project or if not what the last child record
entered associated with this project is and then populate the child's tool#
with the next sequential tool# but I'm not sure where to even begin (I
probably don't even have the lingo right). In other words, if on 11/29/07 I
go to enter the tools needed that day for the chair project (#37) I'd like it
to know that the next sequential tool # is tool5 even though the current
record is only linked to the 11/28 record by that 37. This sounds so much
more complicated than it actually is... hopefully someone will be able to
understand what I'm trying to do. Any suggestions? Thanks!
parent record. The "parent" is each day on a project and the "child" is each
tool used for the project on that day. So... if project number 37, building
a chair, requires green hammer and a blue saw on 11/27/07 the form would tell
me that "chair" with ID 37 is associated with green hammer (tool1) and blue
saw (tool2). And then if project number 37, building a char, requires a
yellow level (tool3) and a purple tape measure (tool4) on 11/28/07, there
would be a new record for 11/28 with that information in the submenu. I want
to write code that will determine if this is the first new child record
associated with the parent project or if not what the last child record
entered associated with this project is and then populate the child's tool#
with the next sequential tool# but I'm not sure where to even begin (I
probably don't even have the lingo right). In other words, if on 11/29/07 I
go to enter the tools needed that day for the chair project (#37) I'd like it
to know that the next sequential tool # is tool5 even though the current
record is only linked to the 11/28 record by that 37. This sounds so much
more complicated than it actually is... hopefully someone will be able to
understand what I'm trying to do. Any suggestions? Thanks!