Hi All,
I had a form (Address) containing a subform (People) and the main form was based on a query, qryNeighbors--everything worked.
Then I realized I actually needed a tab control to show multiple families living at the address. So each tab would represent a family and contain the subform.
My goal is to write code using SELECT DISTINCT to pull out the FamilyID(s) of each family and then feed it through qryNeighbors for the data and place it in the subform on the tab page.
I think it probably goes in the OnLoad event of Address form. Is this the best place to put it? Is there an easier way to show one family per tab without writing code? I know there isn't a recordsource for a tab control, is there something else that will work more smoothly? I feel like I'm reinventing the wheel.
Thank you for taking the time to ponder this problem.
I had a form (Address) containing a subform (People) and the main form was based on a query, qryNeighbors--everything worked.
Then I realized I actually needed a tab control to show multiple families living at the address. So each tab would represent a family and contain the subform.
My goal is to write code using SELECT DISTINCT to pull out the FamilyID(s) of each family and then feed it through qryNeighbors for the data and place it in the subform on the tab page.
I think it probably goes in the OnLoad event of Address form. Is this the best place to put it? Is there an easier way to show one family per tab without writing code? I know there isn't a recordsource for a tab control, is there something else that will work more smoothly? I feel like I'm reinventing the wheel.
Thank you for taking the time to ponder this problem.
Attachments
Last edited: