s***@gmail.com
2012-11-16 14:25:20 UTC
Hi, I'm very new to VFP and GUI design. I have a item_master table which stores, among other things, a "category" and "subcategory" fields. In my main form, I want these two fields to be editable using dropdowns, but I want to narrow the subcategory dropdown to be the appropriate subcategories for the category chosen. The permissible choices for category and subcategory are in separate tables. Can somebody point me in the right direction? I've tried using a query for the rowsource but it doesn't like the way I reference the value in the first dropdown. I've also tried storing the choice in the first dropdown to a variable then using that variable as the WHERE in my query when the second dropdown gets focus, but it errors saying the variable doesn't exist. I know this must be very easy, but I would appreciate some help. Thank you.