sql - How to refresh a subquery if text is written in a textbox? -


i made form textbox , subquery. textbox filters subquery everytime write want filter have tab out of textbox , press "refresh all" button.
want know how can make whenever write in textbox subquery updates , filters accordingly.
should mention using microsoft access 2007 , form looks : https://imgur.com/a/dpq7p.

thank help.

use change event of textbox.

private sub textbox_change()     me         if len(.textbox.text) = 0             .subform.form.filteron = false         else             .subform.form.filter = "[fieldname] '*" & .textbox.text & "*'"             .subform.form.filteron = true         end if     end end sub 

update:

private sub text4_change()     me         if len(.text4.text) > 0             .[kupci query subform].form.requery         end if     end end sub 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -