kgcrowther
Registered User.
- Local time
- Today, 19:36
- Joined
- Jun 1, 2001
- Messages
- 52
I have two tables:
tblOne - contains regional data (e.g., fields = Region, Class, Num1, Num2)
tblTwo - contains data to split regional numbers to smaller regions based on class and region.
I would like to use the data in tblTwo to split regions in tblOne to either permanently update tblOne to to create another tblThree. But, I have spent hours on this problem and haven't come up with a good way to solve.
Every region that splits (aprroximately 5% of records in tblOne) is split into either exactly 2 or exactly 3 records for each class in the region. I THINK I would like to:
1.) Read a record into an array. (I don't have any idea how to do this.)
2.) RecordSet.AddNew (once or twice) such that the new records are duplicates of the array in (1.) (not sure how to make them duplicates, but I only need to edit a small number of fields, the rest just need to be copied)
3.) RecordSet.Edit all 2 or three arrays to redefine Region, Num1, and Num2. (I'm pretty sure I know how to do this. I know how to edit an existing record, but I'm not sure how to keep track of 2 or 3 records at a time.)
Any advice on either method or individual steps? Thanks in advance for any ideas. I'm really not looking for a solution, just ideas. Thanks!!
tblOne - contains regional data (e.g., fields = Region, Class, Num1, Num2)
tblTwo - contains data to split regional numbers to smaller regions based on class and region.
I would like to use the data in tblTwo to split regions in tblOne to either permanently update tblOne to to create another tblThree. But, I have spent hours on this problem and haven't come up with a good way to solve.
Every region that splits (aprroximately 5% of records in tblOne) is split into either exactly 2 or exactly 3 records for each class in the region. I THINK I would like to:
1.) Read a record into an array. (I don't have any idea how to do this.)
2.) RecordSet.AddNew (once or twice) such that the new records are duplicates of the array in (1.) (not sure how to make them duplicates, but I only need to edit a small number of fields, the rest just need to be copied)
3.) RecordSet.Edit all 2 or three arrays to redefine Region, Num1, and Num2. (I'm pretty sure I know how to do this. I know how to edit an existing record, but I'm not sure how to keep track of 2 or 3 records at a time.)
Any advice on either method or individual steps? Thanks in advance for any ideas. I'm really not looking for a solution, just ideas. Thanks!!