Oncurrent event

D

DanWH

I have a form with code in the Oncurrent event that runs just fine.

On my form I have a combo box that changes a variable in that code so that
after I change the contents of the combobox I want the code in that form's
Oncurrent property to fun again.

I've tried all the me.refresh/repaint/requery, docmd.requery/repaintobject,
and it doesn't work.

How can I redo the oncurrent event code just by updating a combobox in that
same form?

thanks
Dan
 
B

Beetle

Call the Current event in the After Update event of your combo box;

Private Sub cboYourCombo_AfterUpdate()

Form_Current

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top