I have two tables with a one to many relationship
Table1: OrderNum Table2: OrderNum
ItemNum ItemNum
RackDesc RackDesc
Table2 is populated automatically when someone scans a barcode for an order and a rack. I need to move that information to Table1 which is the main database with all the order information.
The probl0em is here: Table1 only has one record per ItemNum, while table2 can have multiple rackdesc per itemnum. I need to make it so that if there is only one record in Table2 for a given order and item number then copy that rackdesc to table 1. But if there is multiple rack desc in table 2 then when copying to table 1 put it in the following syntax: "RackNum1, RackNum2,..etc" for as many records there is for a give order and item num in table2.
Not sure if this is possible, currently I just have an update query which copys the first of all the rackdesc in case there are multiple.
Thanks, for any ideas
Table1: OrderNum Table2: OrderNum
ItemNum ItemNum
RackDesc RackDesc
Table2 is populated automatically when someone scans a barcode for an order and a rack. I need to move that information to Table1 which is the main database with all the order information.
The probl0em is here: Table1 only has one record per ItemNum, while table2 can have multiple rackdesc per itemnum. I need to make it so that if there is only one record in Table2 for a given order and item number then copy that rackdesc to table 1. But if there is multiple rack desc in table 2 then when copying to table 1 put it in the following syntax: "RackNum1, RackNum2,..etc" for as many records there is for a give order and item num in table2.
Not sure if this is possible, currently I just have an update query which copys the first of all the rackdesc in case there are multiple.
Thanks, for any ideas