A family of Microsoft relational database management systems designed for ease of use.
Thanks for the video! It helps greatly.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi all,
I am trying to do a little Access project and I am encountering some difficulties. I would appreciate any help with this!
I have a table Sources with a one-to-many relationship with table ImpactsOnPillars, which in turn has a one-to-many relationship with table InformationControl.
The whole idea is that reports come in and I keep track of them in Sources. Each report can contain events that have an impact in the "pillars' (these are kind of rules). These impacts will be notified to certain people and this is tracked in InformationControl.
The relationships look like this then (the other two tables are not important):
I would like to have a form where all records from ImpactsOnPillars are displayed (strongly preferably in datasheet view, to apply filtering). When a record from that table is selected, its corresponding parent report from Sources should be shown, together with the corresponding records from InformationControl.
I have tried different approaches and only one is working so far: using the wizard, I create a split form with Record Source ImpactsOnPillars. Text boxes for every field appear automatically so make then not visible. Over these hidden boxes I place subforms for Sources and InformationControl, with the adequate Link Master/Child Field property so that they talk to the selected record in the datasheet half of the form. This achieves what I need, but it seems to me it's a very inelegant solution.
Is there a better way to do this?
Cheers!
These have been my unsuccessful attempts:
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Thanks for the video! It helps greatly.
Thanks for all the suggestions! I have tried the continuous form + subform method as explained in dhookom's post and it works!
You might like to take a look at CorrelatedSubs.zip in my public databases folder at:
https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
If you have trouble downloading a specific file, clicking on the 'Download' button at the top of the page while no files are selected should download a zip file of all files in the folder, from which you should then be able to unpack the relevant file.
This little demo file includes an illustration of how to correlate two subforms. In the demo the subforms are in continuous forms view, but could be changed to datasheet view if preferred. The second subform is correlated with the first by referencing its key as a parameter. The second subform is then requeried in the Current event procedure of the first.
I think what you are looking for (at least what is possible) can be found in a nice YouTube video Nested Subforms by Richard Rost.
Hello
I am Abdal and I would be glad to help you with your question.
Your solution of using a split form with subforms is actually a common approach for displaying related records in Access, so it's not inelegant at all! However, if you want to explore other options, here are a few suggestions:
Overall, using subforms with a split form or a continuous form is probably the easiest and most common approach, but the other options can be useful if you have specific requirements or want more control over the layout and behavior of the form.
I hope this information helps.
Regards,
Abdal