D
DGregg
I have a main form (EVENT) whose PK is an autonumber (EVENTID) and a second
field (EVENTNUMBER) which may or may not be unique, hence my use of the
autonumber. I then have 10 suforms (each with FK as an autonumber
EMP1...EMP10 and EVENTNUMBER) that need to be linked based on the main form
autonumber (EVENTID). This is where I'm running into problems. I need the
subform autonumbers to stay in synch with the main form autonumber, however,
not all 10 subforms will be populated for each single record entered (at
minimum only 1 subform will be populated). My form is for data entry
purposes only and I have a true one-to-one relationship (as long as I
understand this correctly). I have the Link Master Records for each subform
set to the master form primary keys EVENTID;EVENTNUMBER with the Link Child
Records as the subform foreign keys EMP1;EVENTNUMBER (subform 1),
EMP2;EVENTNUMBER (subform2), etc.
I am finding that the subform autonumber gets out of synch with the master
form autonumber when I have entered a record, for example, where there is an
entry in subform1 but not for subform2; then my second record entry will
contain entries for both subform1 & subform2. At that point, subform2 with
display an autonumber of 1 when I really need it set to 2 (based on the fact
that it is the second main record entered which is what the main form
autonumber reads). What am I doing wrong? I've been working on this for
over a week with no success. Please help.
field (EVENTNUMBER) which may or may not be unique, hence my use of the
autonumber. I then have 10 suforms (each with FK as an autonumber
EMP1...EMP10 and EVENTNUMBER) that need to be linked based on the main form
autonumber (EVENTID). This is where I'm running into problems. I need the
subform autonumbers to stay in synch with the main form autonumber, however,
not all 10 subforms will be populated for each single record entered (at
minimum only 1 subform will be populated). My form is for data entry
purposes only and I have a true one-to-one relationship (as long as I
understand this correctly). I have the Link Master Records for each subform
set to the master form primary keys EVENTID;EVENTNUMBER with the Link Child
Records as the subform foreign keys EMP1;EVENTNUMBER (subform 1),
EMP2;EVENTNUMBER (subform2), etc.
I am finding that the subform autonumber gets out of synch with the master
form autonumber when I have entered a record, for example, where there is an
entry in subform1 but not for subform2; then my second record entry will
contain entries for both subform1 & subform2. At that point, subform2 with
display an autonumber of 1 when I really need it set to 2 (based on the fact
that it is the second main record entered which is what the main form
autonumber reads). What am I doing wrong? I've been working on this for
over a week with no success. Please help.