Link to home
Create AccountLog in
Avatar of pdvsa
pdvsaFlag for United States of America

asked on

Set Focus on form On Load by using a Macro

Hello, how do I do this in a macro?  I have looked and not sure if I can set focus through use of a Macro.  I know I can by VBA but I need to do it by macro.

Me.Project_Name.SetFocus

thanks
Avatar of Barry Cunney
Barry Cunney
Flag of Ireland image

GoToControl action
Avatar of pdvsa

ASKER

Do you think this is correct?  I have some other items in the Macro and not sure if I can combine like I am doing.  It does not set focus the way it is not in the pic.  

Let me know what you think.  thx
untitled.JPG
Avatar of pdvsa

ASKER

the name of the field is [Project Name]  there is a space...
Avatar of pdvsa

ASKER

I have the macro ON LOAD event.  
ASKER CERTIFIED SOLUTION
Avatar of Barry Cunney
Barry Cunney
Flag of Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of pdvsa

ASKER

It might be because I have a tab on the form and the setfocus field is on that tab.  I might need to reference the tab name but not sure.  I will try that... User generated image