ComboBox "filtOff" depend on the value of comboBox "filtInst".
To do it, i use Forms]![frm_Resen]![filtInst])
If the comboBox "filtInst" is empty, I would like to see all value of "filtOff".
How this can be done?
Thanks
Microsoft Access
Last Comment
mbizup
8/22/2022 - Mon
Rey Obrero (Capricorn1)
use vba codes to set the rowSource of the combo filtOff in the afterUpdate event of combo filtInst
private sub filtInst_afterupdate()
if me.filtInst & ""="" then
me.filtOff.rowsource="select f1,f2 from tablex"
else
me.filtOff.rowsource="select f1,f2 from tablex where f1=" & me.filtInst
end if
private sub filtInst_afterupdate()
if me.filtInst & ""="" then
me.filtOff.rowsource="sele
else
me.filtOff.rowsource="sele
end if
end sub