Hello,
I will need your help for the following.
I have two Forms and i want when the code is run to check if frmMain is open to make it focus and if is not to open it.
I found the code below but it is not working.
Can you help me to found a solution?
Regards,
Dimitris
I will need your help for the following.
I have two Forms and i want when the code is run to check if frmMain is open to make it focus and if is not to open it.
I found the code below but it is not working.
Code:
If CurrentProject.AllForms("frmMain").IsLoaded Then
Forms!frmMain.SetFocus
Else
DoCmd.OpenForm "frmMain", acNormal
End If
Can you help me to found a solution?
Regards,
Dimitris