chriscriswell
MIS
Hi folks, I know I must be just not seeing something that's wrong but I just can't see it...
I have three tables... master gage, gagehistory, and gageout. All have deviceID field. Mastergage and gageout have deviceID as primary w/no dup, gagehistory deviceID as foreign with dups allowed (this table stores the data for archiving only; needs to have multiple records with same deviceID as each record is a different event recorded).
Process goes like this... user logs out gage, written to gageout. Gage comes back, user logs gage in, adds event info, then hits button. Button fires macro that saves completed record to gageout, opens append query which uses criteria of "date in" to filter only updated records to append. Appends to gagehistory, then deletes record from gageout.
It seems to work well except for one confusing thing... the append writes the exact same record multiple times (two,three times at a shot) to gagehistory. That is, at any time there will be only one record being appended... but that same record will appear duplicated several times in the target table.
What am I doing wrong?
I have three tables... master gage, gagehistory, and gageout. All have deviceID field. Mastergage and gageout have deviceID as primary w/no dup, gagehistory deviceID as foreign with dups allowed (this table stores the data for archiving only; needs to have multiple records with same deviceID as each record is a different event recorded).
Process goes like this... user logs out gage, written to gageout. Gage comes back, user logs gage in, adds event info, then hits button. Button fires macro that saves completed record to gageout, opens append query which uses criteria of "date in" to filter only updated records to append. Appends to gagehistory, then deletes record from gageout.
It seems to work well except for one confusing thing... the append writes the exact same record multiple times (two,three times at a shot) to gagehistory. That is, at any time there will be only one record being appended... but that same record will appear duplicated several times in the target table.
What am I doing wrong?