P
Pyrite
I have a table, tblEngineerDetails. This simply contains a unique Engineer ID
Number, Surname, Forename. On my other tables I then include Engineer ID
field as a primary key and link the fields in the relationship e.g.
tblEngineerAddresses. This way on an enter engineer details form the payroll
number is entered once and populated everywhere. I also have tblFormsSent.
This is where my problem comes in. One engineer can have multiple forms sent
to them so this table has no primary key as this would not allow duplication
of the EngineerID field which is necessary if they have had more than one
form sent to them. I have linked this with a one to many relationship from
tblEngineerDetails. My real problem comes now. I have created a form with two
combo boxes, one displays Engineer ID and the other displays Forms Sent. When
a user selects the Engineer ID the Forms Sent cbo is populated with the forms
which have been sent to them so the user can select which of the forms this
wish to update (has it been returned etc). My problem is that in the Engineer
ID field it is simply dropping down an Engineer ID for each form they have
been sent, e.g. there may be four '1111' Engineer ID's displayed in the combo
box, each representing an individual record in the Forms Sent table so when
each is selected there are no further options in the second drop down, it is
populated with the forms sent from that record. The user would then have to
go back to the original drop down and select the second '1111' Engineer ID
and see which docs that one relates to and so on until they found the right
one. I want '1111' to be displayed only once in the first drop down
regardless of how many records exist for that number in the Forms Sent table
and then when that is selected I want all the forms sent to be populated in
the next box so that the user can choose which form and then press my control
button which opens another form which runs the required query. The Engineer
ID field is required in the Forms Sent table to keep track on who the forms
have been sent to.
Number, Surname, Forename. On my other tables I then include Engineer ID
field as a primary key and link the fields in the relationship e.g.
tblEngineerAddresses. This way on an enter engineer details form the payroll
number is entered once and populated everywhere. I also have tblFormsSent.
This is where my problem comes in. One engineer can have multiple forms sent
to them so this table has no primary key as this would not allow duplication
of the EngineerID field which is necessary if they have had more than one
form sent to them. I have linked this with a one to many relationship from
tblEngineerDetails. My real problem comes now. I have created a form with two
combo boxes, one displays Engineer ID and the other displays Forms Sent. When
a user selects the Engineer ID the Forms Sent cbo is populated with the forms
which have been sent to them so the user can select which of the forms this
wish to update (has it been returned etc). My problem is that in the Engineer
ID field it is simply dropping down an Engineer ID for each form they have
been sent, e.g. there may be four '1111' Engineer ID's displayed in the combo
box, each representing an individual record in the Forms Sent table so when
each is selected there are no further options in the second drop down, it is
populated with the forms sent from that record. The user would then have to
go back to the original drop down and select the second '1111' Engineer ID
and see which docs that one relates to and so on until they found the right
one. I want '1111' to be displayed only once in the first drop down
regardless of how many records exist for that number in the Forms Sent table
and then when that is selected I want all the forms sent to be populated in
the next box so that the user can choose which form and then press my control
button which opens another form which runs the required query. The Engineer
ID field is required in the Forms Sent table to keep track on who the forms
have been sent to.