VBA default combobox value after requery

crododo

Registered User.
Local time
Yesterday, 16:56
Joined
May 2, 2013
Messages
27
Hi,

I have this code:
If Me.OpenArgs = "frmAddChecklist" Then
Set ctlCombo = Forms!frmAddChecklist!cbDEPARTMENT
ctlCombo.Requery
End if
And this code is done after I added new value to table, and now I want that new value to be used as default one, how can this be done?

Thanks
 
Try

ctlCombo.Default = Forms!frmAddChecklist!cbDEPARTMENT
 

Users who are viewing this thread

Back
Top Bottom