Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    add new record (Access 2002, Win 98 2nd e)

    I have a form with subform. The most frequent changes will be additions of new records to the subform. I want to be able to use a shortcut key to automatically start a new record. Currently the subform is set up as a datasheet. So putting a command button and a accelerator key doesn't appear to be the best option. I have limited coding skills, but I am learning. Can anyone point me in the right direction. What works the easiest and cleanest? Thanks!

  2. #2
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: add new record (Access 2002, Win 98 2nd e)

    I think what I need to know is how to do SetFocus to the subform while on the subform. Thanks

  3. #3
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: add new record (Access 2002, Win 98 2nd e)

    I knew there was a reason to have bought all of these Access books. I finally got it to work.
    The main part of the deal is
    frmServices.Setfocus (This changed me from the main to subform)
    DoCmd.GoToRecord , , acNewRec

    Life is grand when you figure something out that you thought you would never do!!!

    Thanks for looking at the messages. Fay

Posting Permissions

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