I have an append query that pulls records from one table and adds them to another table while inserting some default data. What I would like to do is make that same query or VBA tied to a button that will take the source table and create multiple copies of that record into the output table based on the content in one field of the records in the source table.
i.e.
Table one has 6 columns per record. Column 6 is a textbox that will contain string names seperated by a ; symbol like bob;joe;susan.
What I want to have happen is either the VBA or the append query will insert into table 2, three records, since their were three names listed in that field. So what was one record in table 1 will now be three records in table 2. Each record will still have column 6 but it will now contain only one string so one record will have Bob one record will have Joe and the last will have Sue.
Some records in table 1 will have only one name in column 6 while others might have half a dozen.
I'm thinking it will have to be a "for every ;" kind of loop but I have no idea how to write it.
i.e.
Table one has 6 columns per record. Column 6 is a textbox that will contain string names seperated by a ; symbol like bob;joe;susan.
What I want to have happen is either the VBA or the append query will insert into table 2, three records, since their were three names listed in that field. So what was one record in table 1 will now be three records in table 2. Each record will still have column 6 but it will now contain only one string so one record will have Bob one record will have Joe and the last will have Sue.
Some records in table 1 will have only one name in column 6 while others might have half a dozen.
I'm thinking it will have to be a "for every ;" kind of loop but I have no idea how to write it.