Is there a way in Access to control what order an update query writes data from the first table into a a second table (based on the values in the first table)?
I'm trying to merge multiple records from the first table into one record on the second table. The common field for both tables would be the EmployeeID number. In the first table, there could be 3 records with the same EmployeeID number or there could be 10 (which is the maximum, so I 've setup my second table to only allow for 10 fields of data).
Its crucial that I keep the same order though when updating the data.
I am bringing the information in from Excel where I already have it sorted in the order that I want. It stays in order (via an OrderNum field that I created when I was in Excel).
I just need to tell the Update Query to look at the record with OrderNum being 1 from the first table and then go to the next record and so forth until it gets to the end.
What I've found happening is that the updates happen in what appears to be random order.
And in case someone's asking, I did try a continuous form. It doesn't work in this case. VBA code doesn't like continous forms (at least my knowledge of it doesn't). Whenever I the code would find something wrong with the first record, all the other records on the continuous form for that particular employee show as having the same errors (even though they truly don't).
I'd appreciate any help anyone can give. Its okay if what I'm asking for can't be done, but at least I'll know.
Thanks.
I'm trying to merge multiple records from the first table into one record on the second table. The common field for both tables would be the EmployeeID number. In the first table, there could be 3 records with the same EmployeeID number or there could be 10 (which is the maximum, so I 've setup my second table to only allow for 10 fields of data).
Its crucial that I keep the same order though when updating the data.
I am bringing the information in from Excel where I already have it sorted in the order that I want. It stays in order (via an OrderNum field that I created when I was in Excel).
I just need to tell the Update Query to look at the record with OrderNum being 1 from the first table and then go to the next record and so forth until it gets to the end.
What I've found happening is that the updates happen in what appears to be random order.
And in case someone's asking, I did try a continuous form. It doesn't work in this case. VBA code doesn't like continous forms (at least my knowledge of it doesn't). Whenever I the code would find something wrong with the first record, all the other records on the continuous form for that particular employee show as having the same errors (even though they truly don't).
I'd appreciate any help anyone can give. Its okay if what I'm asking for can't be done, but at least I'll know.
Thanks.