Hi All
I've had 'experts' across the globe fail on this one - but I feel it MUST be possible.
I have a table (we'll call it table1) in which there is an int field containing a number. I have another table (call it table2) which has no records. I need a query/macro/module/anything that will, for each record in table1, create records in table2 according to the number found in the aforementioned field.
So if [table1].[num_records] = 5, the routine must create 5 records in table2 (and id them as 'belonging' to the entry in table1). If the next record in table1 has 3 in num_records, then another 3 records are to be added to table2 with the id's as before.
I'm using Access 2000/2003 so old code wont do it. I'm boggled that this isn't a built-in function (or is it and I'm too close to the problem?). This HAS to be a regular need, surely? Anyway I'm bleary-eyed from searching forums and am about to give it all up and become a roadsweeper - that HAS to be less stress. I'm willing to swap ACCESS-MySQL expertise.......
I've had 'experts' across the globe fail on this one - but I feel it MUST be possible.
I have a table (we'll call it table1) in which there is an int field containing a number. I have another table (call it table2) which has no records. I need a query/macro/module/anything that will, for each record in table1, create records in table2 according to the number found in the aforementioned field.
So if [table1].[num_records] = 5, the routine must create 5 records in table2 (and id them as 'belonging' to the entry in table1). If the next record in table1 has 3 in num_records, then another 3 records are to be added to table2 with the id's as before.
I'm using Access 2000/2003 so old code wont do it. I'm boggled that this isn't a built-in function (or is it and I'm too close to the problem?). This HAS to be a regular need, surely? Anyway I'm bleary-eyed from searching forums and am about to give it all up and become a roadsweeper - that HAS to be less stress. I'm willing to swap ACCESS-MySQL expertise.......