P
pat67
First one: Is there a way to pick more than one criteria when
filtering a form? My form right now contains combo boxes for
parameters and operators and text boxes for criteria. Example, i can
select PO from the first box, = from the second box, and then say type
in 12345 in the criteria box. This will filter for PO 12345 only. My
question is there a way to select multiple POs?
I am trying to then export the filtered results to Excel. I can't use
the query behind the form as it will export all of the data. I am
currently exporting a report to Excel, it works but the formatting
isn't what I am looking for. What i need is to be able to create a
query on the fly and then export that one. That is where i am stuck.
the code I have for exporting the report is this
Private Sub Send_to_Excel_Click()
'Debug.Print globalstrWhere
DoCmd.OpenReport "rptSE16", acViewPreview
With Reports!rptSE16
.Filter = globalStrWhere
.FilterOn = True
End With
DoCmd.OutputTo acOutputReport, "rptSE16", "*.xls", , -1, , ,
acExportQualityPrint
DoCmd.Close acReport, "rptSE16"
End Sub
Any ideas would be helpful.
Thanks
filtering a form? My form right now contains combo boxes for
parameters and operators and text boxes for criteria. Example, i can
select PO from the first box, = from the second box, and then say type
in 12345 in the criteria box. This will filter for PO 12345 only. My
question is there a way to select multiple POs?
I am trying to then export the filtered results to Excel. I can't use
the query behind the form as it will export all of the data. I am
currently exporting a report to Excel, it works but the formatting
isn't what I am looking for. What i need is to be able to create a
query on the fly and then export that one. That is where i am stuck.
the code I have for exporting the report is this
Private Sub Send_to_Excel_Click()
'Debug.Print globalstrWhere
DoCmd.OpenReport "rptSE16", acViewPreview
With Reports!rptSE16
.Filter = globalStrWhere
.FilterOn = True
End With
DoCmd.OutputTo acOutputReport, "rptSE16", "*.xls", , -1, , ,
acExportQualityPrint
DoCmd.Close acReport, "rptSE16"
End Sub
Any ideas would be helpful.
Thanks