Set focus on form

Hi Experts,

how do I place the focus on a form in an access switchboard.  The event procedure opens several forms at once.  Now I need the focus to be placed on the first form opened.
daintysallyAsked:
Who is Participating?
 
Rey Obrero (Capricorn1)Commented:
enclose the name in square brackets

Forms![NameOfFirstForm].setfocus
0
 
Rey Obrero (Capricorn1)Commented:
use this
Forms!NameOfFirstForm.setfocus
0
 
daintysallyAuthor Commented:
That gives me a syntax error.  My form name is 2 words with a space in between
0
 
daintysallyAuthor Commented:
Thank you for your help! !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.