Please excuse my stupidity. I come from a background of raw SQL and find the user-friendly GUI of Access not so friendly to me.
I am creating a form with a combo box that displays the distinct types of orders (online, store, phoned, faxed, etc). Once selected in the form, what is an ideal way to display the number of instances for the selected type of order?
The row source for the combo box is:
SELECT DISTINCT [Sales].[ordertypes] FROM [Sales];
The combobox runs a 'requery' event after update.
I would like the form to place a number next to this combo box that automatically updates to the count of whatever is selected in the combo box.
The count zone in the form should use the following SQL...
Select COUNT([Sales].[ordertypes]) From [Sales] WHERE [Sales].[ordertypes] = Forms![MyFormName]![ordertypes].Value;
What kind of object should I place next to this combo list to show the count SQL?
I am creating a form with a combo box that displays the distinct types of orders (online, store, phoned, faxed, etc). Once selected in the form, what is an ideal way to display the number of instances for the selected type of order?
The row source for the combo box is:
SELECT DISTINCT [Sales].[ordertypes] FROM [Sales];
The combobox runs a 'requery' event after update.
I would like the form to place a number next to this combo box that automatically updates to the count of whatever is selected in the combo box.
The count zone in the form should use the following SQL...
Select COUNT([Sales].[ordertypes]) From [Sales] WHERE [Sales].[ordertypes] = Forms![MyFormName]![ordertypes].Value;
What kind of object should I place next to this combo list to show the count SQL?