DCrake
Remembered
- Local time
- Today, 19:09
- Joined
- Jun 8, 2005
- Messages
- 8,626
I think we are going round in circles here. The frmSummary is the name of the subform datasheet contained on your main form. This is the form that you want to export to Excel. You want to do this after you have picked the columns to show and rows that relate to the data on the main form.
Your code
Is this being applied before you call the code
I suspect so.
You still have not told me what Buildfilter is saying, this is the crux of the matter. This is what is determining which rows to display.
David
Your code
Code:
Me.frmsummary.Form.RecordSource = "SELECT * FROM qrySummary " & Buildfilter
Me.frmsummary.Requery
Is this being applied before you call the code
DoCmd.OutputTo acOutputForm, "frmSummary", acFormatXLS, "TblExport.xls", True
I suspect so.
You still have not told me what Buildfilter is saying, this is the crux of the matter. This is what is determining which rows to display.
David