Focus on linked forms

C

C Tate

I have a form with two linked subforms on it. The first subform is quite long.

When I open the form I want the focus of the subform to be on the first
field. Quite often it is half way along and I have to scroll all the way back
to the start before I can enter a record.

Does anyone know how to achieve this?
 
S

strive4peace

on the main form LOAD event, try this:

me.subform_controlname.setFocus
me.controlname.setFocus

WHERE
subform_controlname is the Name property of the subform control
controlname is the Name property of the control you wish to have the focus

Warm Regards,
Crystal

Access Basics
8-part free tutorial that covers essentials in Access
http://www.AccessMVP.com/strive4peace

*
:) have an awesome day :)
*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top