Thanks for your reply Jeanette!
The record is being saved though, thats the problem.
Here's my situation in a little more detail:
I have a Criteria table with these columns:
CriteriaId - autonumber - primary key
CriteriaValue - Text
I have a CriteriaOption table with these columns:
CriteriaOptionId - autonumber - primary key
CriteriaOptionValue - Text
CriteriaId - FK
I have a PatientData table with these columns:
PatientId - autonumber - primary key
PatientOptionValue - Text
CriteriaId - FK
So my 1st form is based on the Criteria table and it allows you to enter a
CriteriaValue.
My 2nd form is based on the CriteriaOption table and has a combo box filled
with CriteriaValue's that were entered on the 1st form. Then, based on the
current CriteriaValue, you can enter in a subform different
CriteriaOptionValue's.
Finally, the 3rd form is based on a combo of all 3 tables.
It is a continuous form and lined up on the left is the field CriteriaValue
from the Criteria table. It is locked and displays a record for each
CriteriaValue from the Criteria table.
The next field in the same record is a combo box based on all the different
CriteriaOptionValue's with that same CriteriaValue from the first field.
After choosing an option from the combo box, I update the Patient table based
on the CriteriaValue record I am on, and the corresponding
CriteriaOptionValue I have chosen.
Here is some data sample:
Criteria table
Criteria Id CriteriaValue
1 Cough - Day 1
2 Cough - Day 2
CriteriaOption table
CriteriaOptionValue CriteriaId
yes 1
no 1
yes 2
no 2
PatientData table
PatientOptionValue CriteriaId
yes 1
no 2
So on the PatientData form, for Cough Day 1 I choose yes from the combo box
and it gets updated to the table, and for the next record I choose no for
Cough Day 2 and it gets updated to the table.
The problem is when I choose yes for the 1st record of Cough Day 1, all the
combo boxes are getting set to yes and the cursor goes to the first records
combo box. However the table is updated properly, the first record says yes.
When I choose no for Cough Day 2 in the second combo box, again, all the
combo boxes say no and the cursor goes to the first records combo box.
However the table's data is correct, it says yes for 1 and no for 2. So the
data is fine, its just that the user is seeing false info and I want whatever
is put into the combo box to stay there on the form and moving to another
record not to touch what I chose for the combo box in the record I was just
on.
I hope this makes sense, I can get even more detailed if you like, just let
me know whatever info you need, I can even send my database to you, its tiny,
1mb.
I thank you for your help, this is driving me nuts!
gmazza
Hi gmazza ,
this can happen if there is a reason why the first record could not be
[quoted text clipped - 13 lines]