Please Help
How do I get user input from a combo box pick into a dimensioned variable. My problem is; in my code for a On_Click event I want a combo box to become visible, (code) stop and allow the user to pick from the combo, fill the variable with the pick data then move on to the next lines of code.
My problem is I can’t figure out how to stop the code to get the combo box pick into the variable.
The following is snap shot of my code at the point where I need the combo data.
stDocName = "cjl_frm_carbon_tb_feature_dialog"
stLinkCriteria = "[IDNo]=" & "Forms!cjl_frm_carbon_tb_feature_dialog![IDNo]"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Forms!cjl_frm_carbon_tb_feature_dialog!IDNo = FileID
Forms!cjl_frm_carbon_tb_feature_dialog!comboFeature1.Visible = True
Forms!cjl_frm_carbon_tb_feature_dialog!comboFeature1.SetFocus
Feature1_Input = Forms!cjl_frm_carbon_tb_feature_dialog!comboFeature1.Text
much thanks inadvance
redFred
How do I get user input from a combo box pick into a dimensioned variable. My problem is; in my code for a On_Click event I want a combo box to become visible, (code) stop and allow the user to pick from the combo, fill the variable with the pick data then move on to the next lines of code.
My problem is I can’t figure out how to stop the code to get the combo box pick into the variable.
The following is snap shot of my code at the point where I need the combo data.
stDocName = "cjl_frm_carbon_tb_feature_dialog"
stLinkCriteria = "[IDNo]=" & "Forms!cjl_frm_carbon_tb_feature_dialog![IDNo]"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Forms!cjl_frm_carbon_tb_feature_dialog!IDNo = FileID
Forms!cjl_frm_carbon_tb_feature_dialog!comboFeature1.Visible = True
Forms!cjl_frm_carbon_tb_feature_dialog!comboFeature1.SetFocus
Feature1_Input = Forms!cjl_frm_carbon_tb_feature_dialog!comboFeature1.Text
much thanks inadvance
redFred