I was trying to be clever - but I'm not clever enough...
Database is set to open frmStart. This form has an onload property set to:
DoCmd.Minimize
DoCmd.OpenForm DLookup("sMenu", "tblUsersAndGroups", "sUser='" & fOSUserName & "'"
(I've cut out the error checking). This opens a form based on the Windows 2000 username. Downside is that the frmStart has the focus, not the next form specified in the openform above.
How can I change the focus?
Database is set to open frmStart. This form has an onload property set to:
DoCmd.Minimize
DoCmd.OpenForm DLookup("sMenu", "tblUsersAndGroups", "sUser='" & fOSUserName & "'"

(I've cut out the error checking). This opens a form based on the Windows 2000 username. Downside is that the frmStart has the focus, not the next form specified in the openform above.
How can I change the focus?