I am having a bit of difficulty with the last part of a project I am on. I have a form with a subform at the bottom.
Based on the selections from a set of combo boxes across the top, my form will assemble an SQL statement. I need to pass this into the subform and refresh/requery it, but how???
In the ideal world I would love to have this SQL also be the RecordSource for a report, so that we can have dynamic reports.
If I publicly declare the variable strSQL(etc) in the parent form will that make the RecordSource available to the report?
P.S. They can leave the combo boxes empty and the form will still generate the correct SQL. Brambojr
Based on the selections from a set of combo boxes across the top, my form will assemble an SQL statement. I need to pass this into the subform and refresh/requery it, but how???
In the ideal world I would love to have this SQL also be the RecordSource for a report, so that we can have dynamic reports.
If I publicly declare the variable strSQL(etc) in the parent form will that make the RecordSource available to the report?
P.S. They can leave the combo boxes empty and the form will still generate the correct SQL. Brambojr