Goto Control

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top