Goto Control

G

Guest

Hi,

Thanks in advance


I want to move control to a form from a sub form.

Then to a command button

Can't get code right. Please help

Have tried

DoCmd.GoToControl ("Forms![Form1]![Command31]" )

Thanks

Trev
 
G

Guest

Thanks worked great.

But one question if setfocus worked what does goto control do and why have it?

Trev

Powderfinger said:
Do you mean focus?
[Forms]![Form1]![Command31].setfocus


Trever B said:
Hi,

Thanks in advance


I want to move control to a form from a sub form.

Then to a command button

Can't get code right. Please help

Have tried

DoCmd.GoToControl ("Forms![Form1]![Command31]" )

Thanks

Trev
 

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