Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Feb 2002
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Undo the command (Access 2000)

    I have a command Me![Reminder].Left = 5600 in my button.How can i undo the command on LostFocus?. The simple command for undoing gives me an error

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Undo the command (Access 2000)

    Sorry, I don't understand what you want to accomplish. Can you try to explain in more detail?

  3. #3
    4 Star Lounger
    Join Date
    Feb 2002
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Undo the command (Access 2000)

    Thank you. When i press the button the control moves left.But when i press another button, the control does not move back and i have to close the form and open it again

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Undo the command (Access 2000)

    Undo only applies to the value of controls, not to their position.

    You'll have to place a line

    Me![Reminder].Left = nnnn

    in the On Lost Focus event, where nnnn is the original position. It is measured in twips. There are 1440 twips in an inch, or 567 twips in a centimeter, so for example, if the original Left value was 11 cm, use

    Me![Reminder].Left = 11 * 567

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •