open the Find And Replace Dialogue with focus on a specific default column

C

Colin Hayes

Hi All

I have a Sendkeys function of ^f to open the Find And Replace Dialogue.

I'd like to modify it so that it opens with focus on a specific default
column.

Is this possible?



Best Wishes


Colin
 
K

Klatuu

You first have to set the focus to the control you want to use the find and
replace on.
 
C

Colin Hayes

Klatuu said:
You first have to set the focus to the control you want to use the find and
replace on.


HI

Yes , I understand. I

It's just that when I use my sendkey command to open the dialog again ,
the focus is on a different column and means that I have to continually
navigate for it to search down the one I want.

I just need to always focus on the same one when I open it.

Can this be done? Maybe with a macro or SQL?



Best Wishes
 
L

Larry Daugherty

I don't see the first part of your thread so if this is 'way off base
that may be the reason.

Where you have the code to open the dialog, precede that line with one
to set focus to that *control*, not "field".

For general use, there is (or was) a saver version of SendKeys on
www.mvps.org/access named fSendkeys.

HTH
--
-Larry-
--

 

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