J
Juan Correa
MS Access 2003
Here's my scenario:
Form --> frm_report
In that form: 3 cbo boxes, 2 buttons, 12 txt fields.
the cboboxes provide parameters for a query, and also criteria for 12 DSum
expressions that are applied to each of the 12 text boxes respectively.
The 12 text boxes display the total revenue for each month based on the
selections from the 3 combo boxes (area, year, service).
This all works perfectly as I have it.
The two buttons that I have do the following:
1. Display the detailed data related to the figures shown on the 12 text
boxes --> This button runs the parameter query based on the selections chosen
on the three combo boxes and displays it on Access.
2. Exports the dtailed data related to the summary figures. Same as above
button but instead of displaying the results of the query, it sends it to
excel.
This all works fine as well.
And now my question:
All I want is to prevent users from sending "Null" parameters to the query
when clicking on the buttons (so as to prevent the display of a blank query,
or the export of a blank spreadsheet).
How can achieve this? Can I set it up so that a user gets a warning messge
letting them know that all three fields must be populated before the buttons
can be used?
thanks
Juan Correa
Here's my scenario:
Form --> frm_report
In that form: 3 cbo boxes, 2 buttons, 12 txt fields.
the cboboxes provide parameters for a query, and also criteria for 12 DSum
expressions that are applied to each of the 12 text boxes respectively.
The 12 text boxes display the total revenue for each month based on the
selections from the 3 combo boxes (area, year, service).
This all works perfectly as I have it.
The two buttons that I have do the following:
1. Display the detailed data related to the figures shown on the 12 text
boxes --> This button runs the parameter query based on the selections chosen
on the three combo boxes and displays it on Access.
2. Exports the dtailed data related to the summary figures. Same as above
button but instead of displaying the results of the query, it sends it to
excel.
This all works fine as well.
And now my question:
All I want is to prevent users from sending "Null" parameters to the query
when clicking on the buttons (so as to prevent the display of a blank query,
or the export of a blank spreadsheet).
How can achieve this? Can I set it up so that a user gets a warning messge
letting them know that all three fields must be populated before the buttons
can be used?
thanks
Juan Correa