Hi All,
I've been trying to figure out an issue I have with a dropdown combobox I've had for a couple of days now.
There are 2 such boxes on the same form, and one was essentially copied from the other. The only significant difference between the two is their Requery() function, but I don't really see how that can be the issue.
What's happening is, I have the two boxes set to different control sources. Their dropdown values come from a code table, and populated into This.SourceArray in the Requery().
Everything seems fine, I select the values from each of the two dropdowns, (one is driven by the other) so when the contents of the available dropdown on the left changes, then the contents of the dropdown on the right (what you can select) are updated.
So If I pick for instance, T&E from the one on the left, the options in the second become Breakfast, Lunch, Dinner. If I change the left dropdown to Corporate then the options in the right box change to Utility, License, Supplies.
I pick the items I need, and that's all fine. BUT when I exit the form and come back in, the value in the box on the left is there, but on the right it's not. If I "edit" the field, as soon as I click the dropdown, it's on the correct item (what is stored in the table, and reflects the control source value), but it doesn't appear unless I click on the dropdown, then I can see it. When I check the data table (actually there is a grid on the form with the values too), they are correct, it's just not appearing in my dropdown.
Any idea what could cause this?
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."
I've been trying to figure out an issue I have with a dropdown combobox I've had for a couple of days now.
There are 2 such boxes on the same form, and one was essentially copied from the other. The only significant difference between the two is their Requery() function, but I don't really see how that can be the issue.
What's happening is, I have the two boxes set to different control sources. Their dropdown values come from a code table, and populated into This.SourceArray in the Requery().
Everything seems fine, I select the values from each of the two dropdowns, (one is driven by the other) so when the contents of the available dropdown on the left changes, then the contents of the dropdown on the right (what you can select) are updated.
So If I pick for instance, T&E from the one on the left, the options in the second become Breakfast, Lunch, Dinner. If I change the left dropdown to Corporate then the options in the right box change to Utility, License, Supplies.
I pick the items I need, and that's all fine. BUT when I exit the form and come back in, the value in the box on the left is there, but on the right it's not. If I "edit" the field, as soon as I click the dropdown, it's on the correct item (what is stored in the table, and reflects the control source value), but it doesn't appear unless I click on the dropdown, then I can see it. When I check the data table (actually there is a grid on the form with the values too), they are correct, it's just not appearing in my dropdown.
Any idea what could cause this?
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."