![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have two combo boxes on a form, both bound to a field in the table. They're named input_Section and input_Category. Both fields have queries as their data source. Categories are a subset of Section, so I want the input_Category combo box to display only categories relevant to the selected section. Therefore, the query underlying the input_Category combo box uses input_Section = [Forms]![frm_Input]![input_Section] to select categories. It works fine, but when I close the form using DoCmd.Close, an "Enter Parameter Value" pop-up appears asking the end-user to enter a value for [Forms]![frm_Input]![input_Section]. I guess on closing the form loses the value of input_Section and interprets the field reference as a parameter. Is there any way of preventing this? I notice when I close the form using the control box this message doesn't appear. If there's a solution easier than creating an unbound control I'd love to try that. Any help appreciated! Mike |
#3
| |||
| |||
|
|
I have two combo boxes on a form, both bound to a field in the table. They're named input_Section and input_Category. Both fields have queries as their data source. Categories are a subset of Section, so I want the input_Category combo box to display only categories relevant to the selected section. Therefore, the query underlying the input_Category combo box uses input_Section = [Forms]![frm_Input]![input_Section] to select categories. It works fine, but when I close the form using DoCmd.Close, an "Enter Parameter Value" pop-up appears asking the end-user to enter a value for [Forms]![frm_Input]![input_Section]. I guess on closing the form loses the value of input_Section and interprets the field reference as a parameter. Is there any way of preventing this? I notice when I close the form using the control box this message doesn't appear. If there's a solution easier than creating an unbound control I'd love to try that. Any help appreciated! Mike |
![]() |
| Thread Tools | |
| Display Modes | |
| |