MS Access SQL Where statement based on Combobox value

brian_msbc

Registered User.
Local time
Yesterday, 19:55
Joined
Dec 12, 2016
Messages
17
Code:
 SELECT DISTINCT NetworkManager
 FROM MasterProfileSummary
 WHERE Region = [Forms]![formQuestHist]![comboRegion]
If the combobox "comboRegion" is null, then I want to include all regions, else I want to filter for the region specified in the combobox. How should this Where statement be altered?
 
This worked successfully. However, if I change Combobox A's value, and Combobox B has a where statement dependant on Combobox A, why doesn't Combobox B automatically update when the Combobox A changes? How can I achieve this goal?
 
You'd need to requery combo B in combo A's after update event.
 

Users who are viewing this thread

Back
Top Bottom