Hello All
I have an excel sheet that we have to download from a given source and I am using access to populate this record directly to SQL server to be used by a barcoding label app.
The problem I have run into with my app is that each record inthe sheet has a quantity column attached to a given number
example
number 00001 black table with chair set Quantity 1
number 00005 white desk with top cloth Quantity 16
the numbers are supposed to be unique for each record but clearly we see that 16 white desks belong to the same number. When the app goes in to print the barcodes based on the code behind it, naturally it prints out only one label and the requirement is to print 16. I have no unique way of doing this as number 00005 is tied to one record not 16.
My questions are
a) is there a way to run a query (in access or vba) to return x amount of records based on quantity number
ie if 00005 has quantity 16 then my query would return 16 lines each with the same record but tagged with a unique id or
b) is there any code that one may have to split these records at insert time to 16 separate records each with an autonumber PK that would make each record unique.
The data cannot be modified from the source because we receive updated copies of this sheet with 2000+ rows at least once a week. Going through each record in excel and splitting down to its associated quantity - well this could only take years to do.
Any help is appreciated guys.
I have an excel sheet that we have to download from a given source and I am using access to populate this record directly to SQL server to be used by a barcoding label app.
The problem I have run into with my app is that each record inthe sheet has a quantity column attached to a given number
example
number 00001 black table with chair set Quantity 1
number 00005 white desk with top cloth Quantity 16
the numbers are supposed to be unique for each record but clearly we see that 16 white desks belong to the same number. When the app goes in to print the barcodes based on the code behind it, naturally it prints out only one label and the requirement is to print 16. I have no unique way of doing this as number 00005 is tied to one record not 16.
My questions are
a) is there a way to run a query (in access or vba) to return x amount of records based on quantity number
ie if 00005 has quantity 16 then my query would return 16 lines each with the same record but tagged with a unique id or
b) is there any code that one may have to split these records at insert time to 16 separate records each with an autonumber PK that would make each record unique.
The data cannot be modified from the source because we receive updated copies of this sheet with 2000+ rows at least once a week. Going through each record in excel and splitting down to its associated quantity - well this could only take years to do.
Any help is appreciated guys.