I have a form containing five fields. The first field is the registration no of vehicles. The second field is a serial of a journey. Note that each vehicle makes several journeys. The third and fourth fields are data for the journey and the fifth field contains a number which represents the no of occurrences of the same journey of the same vehicle.
Let’s say the data in the corresponding table of the form might look like:
RegNo SNJourney COL3 COL4 Freq
AAA1 1 100 100 1
AAA1 2 200 200 1
AAA2 1 300 300 1
Etc
Now, the frequency of each journey, ie the value of the last column, may contain a number greater than one. My problem is how to automatically create the same records and the number of these new records to be equal to the number of Frequency and in addition, how these new records could have different but consecutive serial numbers?
For example,
RegNo SNJourney COL3 COL4 Freq
AAA1 1 100 100 1
AAA1 2 200 200 3
AAA1 3 200 200 3 *
AAA1 4 200 200 3 *
*These records must be created automatically
So, I would like Access to do the following: if I type 3 in the frequency field then the current record must be copied twice so as to have a total of three records but with consecutive SNJourney.
Thank you very much for your time and patience.
Let’s say the data in the corresponding table of the form might look like:
RegNo SNJourney COL3 COL4 Freq
AAA1 1 100 100 1
AAA1 2 200 200 1
AAA2 1 300 300 1
Etc
Now, the frequency of each journey, ie the value of the last column, may contain a number greater than one. My problem is how to automatically create the same records and the number of these new records to be equal to the number of Frequency and in addition, how these new records could have different but consecutive serial numbers?
For example,
RegNo SNJourney COL3 COL4 Freq
AAA1 1 100 100 1
AAA1 2 200 200 3
AAA1 3 200 200 3 *
AAA1 4 200 200 3 *
*These records must be created automatically
So, I would like Access to do the following: if I type 3 in the frequency field then the current record must be copied twice so as to have a total of three records but with consecutive SNJourney.
Thank you very much for your time and patience.