Move focus between forms

G

Guest

I'm sure this is really easy but I don;t use VB much

How do I move the focus from one form to another when I have multiple forms ope

i.e. the two form names are : frmSelectNametoImport and frmSelectedFilingCabine

and I want to be able to move the focus from one to another. Do I have to select a particluar control i
each form and if so, how do I do this with VB
 
A

Allen Browne

If the forms are opened normally (not in Dialog mode), you can activeate a
form by setting focus to it like this:
Forms("frmSelectNametoImport").SetFocus
 

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