H
HeatherD25
Hi,
I'm trying to get around not being able to export a report to Excel in
Access 2007. So... I have a form (frm_Reports). On that form I have a
number of criteria that a user can enter data in (they can enter something in
all fields, some fields, or none) to create their report (which is actually a
query that I will export).
Some example fields:
[STATUS] (This is a combo selection box)
[LETTER_DATE_Begin] and [LETTER_DATE_End] (This has two boxes they can enter
a begin date and end date to pull data for [LETTER_DATE] field.
[FLAGGED] (This is a Yes/No field)
There are some other fields, but I'll just use the above as samples. I want
them to be able to run a query (qRpt_AdHoc) based on what's entered on the
form. So, if nothing is entered I want the query to return all of the
records. If two things are entered, I want the query to filter on both of
those things.
How do I do this? I had it working to pass the values through to a report,
but since I can't export a report that won't work. I can't figure out how to
get it to work with a query. I don't know what to put in the Criteria field.
Thanks for your help!
Heather
I'm trying to get around not being able to export a report to Excel in
Access 2007. So... I have a form (frm_Reports). On that form I have a
number of criteria that a user can enter data in (they can enter something in
all fields, some fields, or none) to create their report (which is actually a
query that I will export).
Some example fields:
[STATUS] (This is a combo selection box)
[LETTER_DATE_Begin] and [LETTER_DATE_End] (This has two boxes they can enter
a begin date and end date to pull data for [LETTER_DATE] field.
[FLAGGED] (This is a Yes/No field)
There are some other fields, but I'll just use the above as samples. I want
them to be able to run a query (qRpt_AdHoc) based on what's entered on the
form. So, if nothing is entered I want the query to return all of the
records. If two things are entered, I want the query to filter on both of
those things.
How do I do this? I had it working to pass the values through to a report,
but since I can't export a report that won't work. I can't figure out how to
get it to work with a query. I don't know what to put in the Criteria field.
Thanks for your help!
Heather