Hello,
I have a problem that I can't seem to wrap my head around. Lets see if I can explain my issue in a way that makes sense. I have an Access database with a Key that doesn't allow duplicates, and need to import data to a temporary table, and the use an update query to move the data to the appropriate fields in the main table. So I have all of this covered ok. The problem lies in the data that is provided for import. The data provided to us has multiple lines with the same Key (which is our Label ID) because it separates the different tests (some examples PZA, INH, RIF, CAP etc).
Example (only showing a few of the many fields):
Label ID First Name Last Name PZA INH RIF CAP
10C000136 Bob Smith S
10C000136 Bob Smith S
10C000136 Bob Smith S
10C000136 Bob Smith R
What I need is to combine this so its all one line so I can run the update query to the main table and not have key violations.
Label ID First Name Last Name PZA INH RIF CAP
10C000136 Bob Smith S S S R
Any suggestions would be greatly appreciated, I don't even know where to start on this one.
Thanks
I have a problem that I can't seem to wrap my head around. Lets see if I can explain my issue in a way that makes sense. I have an Access database with a Key that doesn't allow duplicates, and need to import data to a temporary table, and the use an update query to move the data to the appropriate fields in the main table. So I have all of this covered ok. The problem lies in the data that is provided for import. The data provided to us has multiple lines with the same Key (which is our Label ID) because it separates the different tests (some examples PZA, INH, RIF, CAP etc).
Example (only showing a few of the many fields):
Label ID First Name Last Name PZA INH RIF CAP
10C000136 Bob Smith S
10C000136 Bob Smith S
10C000136 Bob Smith S
10C000136 Bob Smith R
What I need is to combine this so its all one line so I can run the update query to the main table and not have key violations.
Label ID First Name Last Name PZA INH RIF CAP
10C000136 Bob Smith S S S R
Any suggestions would be greatly appreciated, I don't even know where to start on this one.
Thanks