Is there a way to output a filtered set of records to an Excel spreadsheet. I can send a filtered set of records to a report using this:
DoCmd.OpenReport stDocName, acPreview
With Reports(stDocName)
.OrderBy = strSort
.Filter = strWhere
.FilterOn = True
End With
Is there a way to do the same with the OutputTo? Here is the statement I am using:
DoCmd.OutputTo acOutputForm, "frmMpDispatchKoetterDataSheet_sub", acFormatXLS, , -1
Thanks,
vmon
DoCmd.OpenReport stDocName, acPreview
With Reports(stDocName)
.OrderBy = strSort
.Filter = strWhere
.FilterOn = True
End With
Is there a way to do the same with the OutputTo? Here is the statement I am using:
DoCmd.OutputTo acOutputForm, "frmMpDispatchKoetterDataSheet_sub", acFormatXLS, , -1
Thanks,
vmon