H
howie
Hi, the person I am making this database for wants me to build a form that
allows adding, editing and deleting data from the database. Basically, the
database stores and tracks jobs hazard analysis forms. I have a formID that
correlates all data from subsections of the JHA (like all the hazards for a
job, all the personal protective equipment used for a job, all the training
necessary for a job, etc.). Anyway, the form that I am trying to make has to
have 7 subforms (the number of subsections of the JHA) because for each
subsection there can be many entries. For example, a job can present many
hazards and each of those hazards that belong to that particular job will
have the same formID.
My problem comes in when I am trying to add a new JHA into the database.
The table that correlates to each sub-form needs the formID so that the data
can be stored properly and be retrieved later. However I only want the user
to have to enter it once and not 7-8 times how can I get the formID from the
one place on my form and be able to store it in each of my 7 tables? Should
that one place be on the main form, would it make it easier? Or can it be in
one of the subforms?
allows adding, editing and deleting data from the database. Basically, the
database stores and tracks jobs hazard analysis forms. I have a formID that
correlates all data from subsections of the JHA (like all the hazards for a
job, all the personal protective equipment used for a job, all the training
necessary for a job, etc.). Anyway, the form that I am trying to make has to
have 7 subforms (the number of subsections of the JHA) because for each
subsection there can be many entries. For example, a job can present many
hazards and each of those hazards that belong to that particular job will
have the same formID.
My problem comes in when I am trying to add a new JHA into the database.
The table that correlates to each sub-form needs the formID so that the data
can be stored properly and be retrieved later. However I only want the user
to have to enter it once and not 7-8 times how can I get the formID from the
one place on my form and be able to store it in each of my 7 tables? Should
that one place be on the main form, would it make it easier? Or can it be in
one of the subforms?