I have a form with a combobox and if form "Mala_dir_para_Grupos" is open the code chooses one value under ItemData(1) as the combo default value.
Else, if form "Mail_para_Grupos" is open the code chooses another value under ItemData(0) as the combo default value. See code below:
If fIsLoaded("Mala_dir_para_Grupos") = True Then
Me.ThisForm = Me.ThisForm.ItemData(1)
Else
If fIsLoaded("Mail_para_Grupos") = True Then
Me.ThisForm = Me.ThisForm.ItemData(0)
End If
It works OK but does´nt really select the option, only shows it.
I need an extra manual work to select the default value showed.
I would like the code to do the complete work!
Any help?
Thanks in advance.
Renato
Else, if form "Mail_para_Grupos" is open the code chooses another value under ItemData(0) as the combo default value. See code below:
If fIsLoaded("Mala_dir_para_Grupos") = True Then
Me.ThisForm = Me.ThisForm.ItemData(1)
Else
If fIsLoaded("Mail_para_Grupos") = True Then
Me.ThisForm = Me.ThisForm.ItemData(0)
End If
It works OK but does´nt really select the option, only shows it.
I need an extra manual work to select the default value showed.
I would like the code to do the complete work!
Any help?
Thanks in advance.
Renato