orbic1
Registered User.
- Local time
- Today, 23:12
- Joined
- Mar 3, 2004
- Messages
- 46
This is my problem, and I can't solve it!
My parent table/form is "Consultation". From this there are many subforms all linking to their respective tables all linked to "Consultation" via their ID (primary key). They are used for the different outcomes or requirements arising from the consultation and these all have this relationship set up. The consultation itself may have anywhere between 1 and 10 different outcomes.
A report needs to be generated to summarise the consultation in the guise of a letter. I can't figure out how to do this without all of the criteria being shown when I don't need it to be! For simplicity I've added in a check box on each subform called "Active", the idea being that a script could simply find both the ID and "Active" to form the query. The logic probably required is:
if table1!active = true then show all of table1's fields
elseif table2!active = true then show all of table 2's fields
etc etc
Really stuck with this one! I can get it to show all of the data, but can't filter it or generate "on the fly". Any ideas?!
Many thanks!
PS have also created a query for each individual subform's table.
My parent table/form is "Consultation". From this there are many subforms all linking to their respective tables all linked to "Consultation" via their ID (primary key). They are used for the different outcomes or requirements arising from the consultation and these all have this relationship set up. The consultation itself may have anywhere between 1 and 10 different outcomes.
A report needs to be generated to summarise the consultation in the guise of a letter. I can't figure out how to do this without all of the criteria being shown when I don't need it to be! For simplicity I've added in a check box on each subform called "Active", the idea being that a script could simply find both the ID and "Active" to form the query. The logic probably required is:
if table1!active = true then show all of table1's fields
elseif table2!active = true then show all of table 2's fields
etc etc
Really stuck with this one! I can get it to show all of the data, but can't filter it or generate "on the fly". Any ideas?!
Many thanks!
PS have also created a query for each individual subform's table.
Last edited: