ms access - Combo Box Hanging onto old data -
i have form have placed toggle button user may clear data they've 3 combo boxes. i've created sql delete data in table form bound to, combo boxes still retaining data despite table being clear of data. how can reset combo boxes? when have form open , close, old data still in combo box. reset combos. help!
private sub reset_company_marketer_product_click()
dim dltprvcompmarkprod_tablesql string dltprvcompmarkprod_tablesql = "delete user_subproducts.* user_subproducts;" docmd.setwarnings false docmd.runsql dltprvcompmarkprod_tablesql docmd.setwarnings true
private sub reset_company_marketer_product_click()
dim dltprvcompmarkprod_tablesql string dltprvcompmarkprod_tablesql = "delete user_subproducts.* user_subproducts;" me!company_select_combo = null me!marketer_select_combo = null me!product_select_combo = null company_select_combo.enabled = true marketer_select_combo.visible = false product_select_combo.visible = false docmd.setwarnings false docmd.runsql dltprvcompmarkprod_tablesql docmd.setwarnings true
Comments
Post a Comment