Scenario:
I've got a table for adding records, with a subtable for all data requirements related to that record.
I've built a 'view' form to navigate through the records, so that you can view the details of each. This includes a listbox to display the list of data requirements attached to each record.
I've made navigation buttons using the control wizard and converted them to VBA to allow more flexibility so that I can add code to them.
Problem:
I want the form to navigate through the primary table records one by one, and just display the subtable records in the listbox. Currently it navigates through each individual subtable record in the listbox before moving on to the next primary record.
For example, say I have:
Record 1
- Data Requirement a
- Data Requirement b
Record 2
- Data Requirement c
- Data Requirement d
- Data Requirement e
Record 3
- Data Requirement f
When I navigate through the records, it goes:
Record 1a
Record 1b
Record 2c
Record 2d
Record 2e
Record 3f
But what I want it to do is navigate just the primary records, so that it goes:
Record 1
Record 2
Record 3
Even if I take the listbox out, the form is still navigating the sub records off screen, as it takes 2 clicks to get through the first primary record, then 3 clicks to get through the second primary record.
Is it possible to achieve what I desire?
Please let me know if I've missed any information.
Thanks.
I've got a table for adding records, with a subtable for all data requirements related to that record.
I've built a 'view' form to navigate through the records, so that you can view the details of each. This includes a listbox to display the list of data requirements attached to each record.
I've made navigation buttons using the control wizard and converted them to VBA to allow more flexibility so that I can add code to them.
Problem:
I want the form to navigate through the primary table records one by one, and just display the subtable records in the listbox. Currently it navigates through each individual subtable record in the listbox before moving on to the next primary record.
For example, say I have:
Record 1
- Data Requirement a
- Data Requirement b
Record 2
- Data Requirement c
- Data Requirement d
- Data Requirement e
Record 3
- Data Requirement f
When I navigate through the records, it goes:
Record 1a
Record 1b
Record 2c
Record 2d
Record 2e
Record 3f
But what I want it to do is navigate just the primary records, so that it goes:
Record 1
Record 2
Record 3
Even if I take the listbox out, the form is still navigating the sub records off screen, as it takes 2 clicks to get through the first primary record, then 3 clicks to get through the second primary record.
Is it possible to achieve what I desire?
Please let me know if I've missed any information.
Thanks.
Comment