I’m setting up a form for students to choose class options.
I have my table, tblOptions,
with 3 fields I want to use; Block, Period, Option Name.
My ‘Block’ is a text and both the Period and Option Name are dropdown menus.
Is there a way i can get my Options Name dropdown to only return the results of the Block and Period entered into my options form?
Well, let me take a stab at it… you want the Option Name dropdown box to only return results that are relevant to the Block and Period on your form. If I am assuming your form – frmClassOption has the text box txtClassBlock and the dropdowns drpClassPeriod and drpClassOptionName. You can make the recordset value of the drpClassOptionName to be something like:
My syntax might me a little whacked, but it should go something like that. Basically, your telling it to only give you options for that dropdown that match your SELECT query that has your previous inputs as criteria.
— Edited 08/13/2012 @ 1842 hours —
Now that I know it’s a continuous form – it begs the question, could you perhaps give a better detail on how you have the forms set up? Is this a subform of a parent form on which the Block and Period are entered, are the Block and Period Entered on the same form and this is a stand-alone, or some combination thereof? Could be helpful to narrow down an answer for you.