Hi,
I'm trying to reference a form and subform recordset in a query. The form recordset is changed dynamically to allow users to 'filter' for certain sets of records.
I want to be able to output the results of the filter to Excel, using a query/subquery, e.g. (air code)
SELECT tbl1.x, tbl2.y, tbl2.z FROM tbl1 JOIN tbl2 etc WHERE y IN (SELECT y FROM MySubform.Recordset).
I can't just use Excel's CopyFromRecordset as I need to include data from both the Form and it's Subform. (I'm happy to be proved wrong on this point if that's not the case
)
Any suggestions gratefully received.
Thanks, Iain
I'm trying to reference a form and subform recordset in a query. The form recordset is changed dynamically to allow users to 'filter' for certain sets of records.
I want to be able to output the results of the filter to Excel, using a query/subquery, e.g. (air code)
SELECT tbl1.x, tbl2.y, tbl2.z FROM tbl1 JOIN tbl2 etc WHERE y IN (SELECT y FROM MySubform.Recordset).
I can't just use Excel's CopyFromRecordset as I need to include data from both the Form and it's Subform. (I'm happy to be proved wrong on this point if that's not the case
Any suggestions gratefully received.
Thanks, Iain