Selasa, 07 Agustus 2012

[MS_AccessPros] Re: generate a click

 

you could use the dirty-dirty-quick-and-dirty approach... if the Field has a caption (Label) attached and the label has a unique Hotkey assigned, for example "&Surname:" then you could use SendKeys "%s"

If you want a really complicated method, you can do something like:
checking Screen.ActiveControl.TabIndex against ControlWhereTheFocusShouldGo.TabIndex and cycling through the controls on the form.

This interpretation is that you are looking for an alternative to the SetFocus Method. However, looking for an alternative to the Click event, would be something else.

I wonder, however, if you are using Split Forms and are trying to get the focus to *either* the Control in the Form *or* the control in the Datasheet, in which case, I have to admit, this was one reason why I never adopted split Forms in any but the simplest of cases.

--- In MS_Access_Professionals@yahoogroups.com, "jdiek_2000" <jdiek_2000@...> wrote:
>
> Hi everyone,
> Is there a way to have the cursor click into a field beside the setfocus?
>
> Thanks,
> Jackie
>

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar