R
radiaz via AccessMonster.com
I created a MS Database and everything works good except I'd like to enhance
the form where I keep all the reports.
Currently, each report,three different reports have a combo box and its
respective command button that says "Preview Report" When the user selects a
criteria from the combo box and clicks the "preview report" button, a report
pops up containing information on the selected criteria. ( One report at a
time)
SO, If you look at the form you will see three different combo boxes follow
by their respective command buttons. Everything works fine.
This is what I'd like to do, but I don't know how to do it.
I'd like to have three combo boxes (combo 1 containing Type information,
combo 2 containing function information, and combo 3-4 containing date ranges
- Row Source Type Table/Query) and only "one" command button. When a user
goes to the report form, I want the combo boxes to default to "ALL" so if the
"Preview Report" command button is clicked and nothing is selected from the
combo boxes, that person will get a report containing all the records that
are in the database.
If the user selects a criteria from either combo box 1 or combo box 2 or
combo box 3-4 and clicks the "Preview Report" command button, then he/she
will get a report based on the selected criteria. OR If the user then selects
criteria from all (combo 1, 2, 3), then, he she will get a report based on
the criteria selected on those three boxes.
Am I making any sense? I already have all the queries and they work well.
This might involve some visual basic coding and I'm not too familiar with it.
I'm learning though. Can you please help me how to code that particular
"command button"
Please I'd appreciate any help you can give me.
Rita
the form where I keep all the reports.
Currently, each report,three different reports have a combo box and its
respective command button that says "Preview Report" When the user selects a
criteria from the combo box and clicks the "preview report" button, a report
pops up containing information on the selected criteria. ( One report at a
time)
SO, If you look at the form you will see three different combo boxes follow
by their respective command buttons. Everything works fine.
This is what I'd like to do, but I don't know how to do it.
I'd like to have three combo boxes (combo 1 containing Type information,
combo 2 containing function information, and combo 3-4 containing date ranges
- Row Source Type Table/Query) and only "one" command button. When a user
goes to the report form, I want the combo boxes to default to "ALL" so if the
"Preview Report" command button is clicked and nothing is selected from the
combo boxes, that person will get a report containing all the records that
are in the database.
If the user selects a criteria from either combo box 1 or combo box 2 or
combo box 3-4 and clicks the "Preview Report" command button, then he/she
will get a report based on the selected criteria. OR If the user then selects
criteria from all (combo 1, 2, 3), then, he she will get a report based on
the criteria selected on those three boxes.
Am I making any sense? I already have all the queries and they work well.
This might involve some visual basic coding and I'm not too familiar with it.
I'm learning though. Can you please help me how to code that particular
"command button"
Please I'd appreciate any help you can give me.
Rita