Goto Control

T

Trever B

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
 
T

Trever B

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
 
Top