Hi everyone
I have the following line almost repeated in all comboboxes in many forms,,
If ComboBox3 = "" Or ComboBox3 = "Select Site" Then ComboBox3.MatchRequired = False Else ComboBox3.MatchRequired = True
What I want is replacing the active control name as it is shown in the above code line (ComboBox3) with a fixed string in order to avoid changing the control name in case of copying the code line to a new control.
I have actually created the following function, but it is not working and also not giving any errors .. I don't know why!!!
Function AC()
AC = Frame1.ActiveControl.Name
End Function
Can you please find me a solution for that?
Thanks a lot,
Bookmarks