Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Duplicate previous field (A2K)

    I know that when you are entering a series of records and you want to duplicate data from the previous record in any specific field that you can press Ctrl-
    Cheers,
    Andy

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

    Re: Duplicate previous field (A2K)

    Why bizarre? That's the built-in function of the F5 key. If you want to change the action of a key, you must cancel the original action by setting KeyCode to 0 (key code 0 does nothing):
    <code>
    If KeyCode = vbKeyF5 Then
    SendKeys "^'"
    KeyCode = 0
    End If
    </code>
    As you see, I pass <code>^'</code> i.e. Ctrl+' to SendKeys; it's a bit shorter than <code>^""</code>

  3. #3
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Duplicate previous field (A2K)

    Hans,

    thanks again for bailing me out. Let's just attach the "bizarre" label to me for not paying closer attention,
    Cheers,
    Andy

Posting Permissions

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