I have access db with a form ... contains some textboxes , comboboxes .... etc
For some reasons i want to hide combocox ( cboEmploeeAcc ) , based on value of cboSantAg .
I use :
Also I have to add the same code on after update event of the cboSantAg combobox .
Is there a way to make me not need to repeat this code ?
For some reasons i want to hide combocox ( cboEmploeeAcc ) , based on value of cboSantAg .
I use :
Code:
Private sub Form_Current()
If me.cboSantAg=1 then
Me.cboEmploeeAcc.visible=false
Else
Me.cboEmploeeAcc.visible=true
End if
End sub
Also I have to add the same code on after update event of the cboSantAg combobox .
Is there a way to make me not need to repeat this code ?