Code:
If Me.cbcompany = True Then
Me!subfrmbookingin.Form!CompanyName.Visible = True
''Me!subfrmbookingin.Form!CompanyName.SetFocus = True (This line does not work)
Me!subfrmbookingin.Form!FirstName.Visible = False (This line does not work)
Else
Me.subfrmbookingin.Form!CompanyName.Visible = False
Me!subfrmbookingin.Form!FirstName.Visible = True (This line does not work)
''Me!subfrmbookingin.Form!FirstName.SetFocus = True (This line does not work)
End If
I hope someone knows what i am doing wrong here as not sure why it doesnt like multiple commands in the same if.
Thank you in advance for any help