Hi Everyone,
I posted this a few weeks ago in the Access Queries and Jet SQL Forum, but I feel that it may be better suited here. Unfortunately, due to multiple obligations with this data conversion, I had to take some time off from this part of the data. It has since become a priority again. Any help would be greatly appreciated, I have had some great experiences with the Tek-Tips community!!
I am currently dealing with a table in Microsoft Access 2003 . This is for a data conversion where my current database has a repeating Style for every barcode associated with it. The new system's table structure wants one row for each Style and the barcodes filter through multiple columns in the same row.
Below is a very simple example:
I have a table called tblBarcodes that looks like this:
Style Barcode
Shoe 100
Shoe 200
Shirt 300
Pant 400
Pant 500
Pant 600
Sweater 700
I need it to look like this:
Style Barcode1 Barcode2 Barcode3
Shoe 100 200
Shirt 300
Pant 400 500 600
Sweater 700
A colleague and I have created the VB code to do this in Excel. The problem is that this table has over 250,000 records in it and I would have to break it up multiple times in order to run it in Excel. I know it can be done in Access. I think it is something as simple as capturing the data in the line above it and comparing that to the current line of my recordset. Sounds easy when typing it obviously.
Thank you!
Josh
I posted this a few weeks ago in the Access Queries and Jet SQL Forum, but I feel that it may be better suited here. Unfortunately, due to multiple obligations with this data conversion, I had to take some time off from this part of the data. It has since become a priority again. Any help would be greatly appreciated, I have had some great experiences with the Tek-Tips community!!
I am currently dealing with a table in Microsoft Access 2003 . This is for a data conversion where my current database has a repeating Style for every barcode associated with it. The new system's table structure wants one row for each Style and the barcodes filter through multiple columns in the same row.
Below is a very simple example:
I have a table called tblBarcodes that looks like this:
Style Barcode
Shoe 100
Shoe 200
Shirt 300
Pant 400
Pant 500
Pant 600
Sweater 700
I need it to look like this:
Style Barcode1 Barcode2 Barcode3
Shoe 100 200
Shirt 300
Pant 400 500 600
Sweater 700
A colleague and I have created the VB code to do this in Excel. The problem is that this table has over 250,000 records in it and I would have to break it up multiple times in order to run it in Excel. I know it can be done in Access. I think it is something as simple as capturing the data in the line above it and comparing that to the current line of my recordset. Sounds easy when typing it obviously.
Thank you!
Josh