Move Cursor

  • Thread starter Thread starter Stacy
  • Start date Start date
S

Stacy

Does anyone know how to move a cursor to another field on a form?
I am using setfocus, but it does not actually move the cursor.

I have a form that when you tab into a specific field a pop-up subform
comes up and you can enter a) a department name or b) a persons name
(based on radio button selected)...

When I leave the popup form I am trying to have it move the cursor to
the next field so that the ONLY way to enter data in the field is
through the pop-up.

I have tried everything, but it seems that if I cancel out of the
subform and then select the field, I can free key right into the cell.

Thanks for any help......
Stacy
 
Hi Stacy,

Instead of fighting this you might want to just set the Locked property of
the control to true. Setfocus should work without seeing your code it's hard
to tell what might be happening. Regardless, the locked property is the way
to solve this one.
 
Sometimes the simplest answer is the hardest to see.

I was setting the locked property after the update, and I did not lock
the combobox itself.... Works perfectly now.

Thanks so much!

Sandra Daigle said:
Hi Stacy,

Instead of fighting this you might want to just set the Locked property of
the control to true. Setfocus should work without seeing your code it's hard
to tell what might be happening. Regardless, the locked property is the way
to solve this one.


--
Sandra Daigle
[Microsoft Access MVP]
For the benefit of others please post all replies to this newsgroup.

Does anyone know how to move a cursor to another field on a form?
I am using setfocus, but it does not actually move the cursor.

I have a form that when you tab into a specific field a pop-up subform
comes up and you can enter a) a department name or b) a persons name
(based on radio button selected)...

When I leave the popup form I am trying to have it move the cursor to
the next field so that the ONLY way to enter data in the field is
through the pop-up.

I have tried everything, but it seems that if I cancel out of the
subform and then select the field, I can free key right into the cell.

Thanks for any help......
Stacy
 
Back
Top