G
Guest
Hi everyone,
I have a tabular form. On it I have a combo box named cboType and a text box (which is hidden) named txtType. txtType pulls data from table and it has values 3 or 4. 3 represents "Food", 4 represents "Beverage".
What I want is programmatically change the list of values for the cboType. If I have a 3 in txtType, I want "appetizer" and "entree" to be list of values in cboType. If txtType = 4 then I want "Beer", "Wine" and "Liquor" to be the list of values for cboType. i want this form to be tabular, and the problem I had with that was whenever I changed values for one of the items, all the combo box values changed.
I need suggestions as to how to program this. I think I have to do the requery command at some point but I'm not sure where and how. Please I need your expertise on this.
Thank you very much.
I have a tabular form. On it I have a combo box named cboType and a text box (which is hidden) named txtType. txtType pulls data from table and it has values 3 or 4. 3 represents "Food", 4 represents "Beverage".
What I want is programmatically change the list of values for the cboType. If I have a 3 in txtType, I want "appetizer" and "entree" to be list of values in cboType. If txtType = 4 then I want "Beer", "Wine" and "Liquor" to be the list of values for cboType. i want this form to be tabular, and the problem I had with that was whenever I changed values for one of the items, all the combo box values changed.
I need suggestions as to how to program this. I think I have to do the requery command at some point but I'm not sure where and how. Please I need your expertise on this.
Thank you very much.