go to field where the curser was before the current one.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello,
I have a small problem and need your will help . I have a form with a code
to lock all records on load.and a Button to Unlock a record.when i load the
form and choose a record to update.suppose the cursor is in field A, and to
unlock the record I clicked the button, here I want a function or code to
take me back to the same field where i was. If this is possible Please Help.
 
Screen.PreviousControl will give you a reference to the previous control
(just as Screen.ActiveControl gives you a reference to the one which
currently has focus)


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


mhmaid said:
hello,
I have a small problem and need your will help . I have a form with a code
to lock all records on load.and a Button to Unlock a record.when i load the
form and choose a record to update.suppose the cursor is in field A, and to
unlock the record I clicked the button, here I want a function or code to
take me back to the same field where i was. If this is possible Please
Help.
 
Back
Top