I have two main forms referring to one subform. I want that particular subform's combobox to detect which main form it is running under with a series of if statements to perform a function.
I tried the
Private Sub Form_GotFocus()
>>global variable = current form name
EndSub
but it doesn't seem to work as expected. How does this sub procedure work?
Is there a simple way of the subform knowing which main form its running under? What's the best way to check if form is has the focus?
I tried the
Private Sub Form_GotFocus()
>>global variable = current form name
EndSub
but it doesn't seem to work as expected. How does this sub procedure work?
Is there a simple way of the subform knowing which main form its running under? What's the best way to check if form is has the focus?