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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -