P
Paul Fenton
We have a customers form that we open to view various records. When
we open the form, I set the focus to the Last Name field. When I do
that, the name is highlighted and if someone does CTRL-F to find,
whatever name is highlighted shows up in the "Find What" field of the
Find and Replace form.
So I put this line in the OnCurrent event:
Sendkeys "{F2}"
which leaves the cursor in the Last Name field, at the end of the name
in the field and solves the Find problem.
What I can't figure out is where to put that Sendkeys line when the
form is opened for the first time. I've tried OnOpen and Activate but
it it still highlights that full name.
What am I doing wrong?
Paul Fenton
we open the form, I set the focus to the Last Name field. When I do
that, the name is highlighted and if someone does CTRL-F to find,
whatever name is highlighted shows up in the "Find What" field of the
Find and Replace form.
So I put this line in the OnCurrent event:
Sendkeys "{F2}"
which leaves the cursor in the Last Name field, at the end of the name
in the field and solves the Find problem.
What I can't figure out is where to put that Sendkeys line when the
form is opened for the first time. I've tried OnOpen and Activate but
it it still highlights that full name.
What am I doing wrong?
Paul Fenton