94Sport5sp
Registered User.
- Local time
- Today, 11:13
- Joined
- May 23, 2012
- Messages
- 115
Hi:
I have created a continuous form bound to a query (X-Tab) where the detail row is a series of unbound text boxes. I then wrote some vba to populate the detail row from the query recordset. (The vba code also populates the heading row which are also unbound text boxes.)
Everything works fine except I do not know how to add or reference a new detail row when a I move to the next record in the recordset, and as a result my form shows me one row for each record repeating whatever data was in the ending record.
So my question is: How do I populate the detail row so that one detail row matches one record from the recordset.
Some background. Each unbound control in the detail section is named "Col" and then a sequential number. So I have Col1, Col2, Col3, etc to Colx (the maximum field the query can return. I have done the same with the heading being Hed1, Hed2, etc to the maximum. Now I need to be able to reference Row1Col1, Row1Col2, Row1Col3, etc and then Row2Col1, Row2Col2, Row2Col3, etc to the maximum number of records.
Thanks
I have created a continuous form bound to a query (X-Tab) where the detail row is a series of unbound text boxes. I then wrote some vba to populate the detail row from the query recordset. (The vba code also populates the heading row which are also unbound text boxes.)
Everything works fine except I do not know how to add or reference a new detail row when a I move to the next record in the recordset, and as a result my form shows me one row for each record repeating whatever data was in the ending record.
So my question is: How do I populate the detail row so that one detail row matches one record from the recordset.
Some background. Each unbound control in the detail section is named "Col" and then a sequential number. So I have Col1, Col2, Col3, etc to Colx (the maximum field the query can return. I have done the same with the heading being Hed1, Hed2, etc to the maximum. Now I need to be able to reference Row1Col1, Row1Col2, Row1Col3, etc and then Row2Col1, Row2Col2, Row2Col3, etc to the maximum number of records.
Thanks