Results 1 to 10 of 10
  1. #1
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199

    Workaround for DataEntry=True locking ability to move between records

    Hello,

    I had set Data Entry to True in order to always default to a blank record. However that locked up my ability to use the arrows to navigate between records in the database. Is there a work around?Click image for larger version. 

Name:	Record.png 
Views:	14 
Size:	1.1 KB 
ID:	18993

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can use GoToRecord in the load event of the form to go to a new record and still have existing records available.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    pBaldy,

    Thanks but I was using GoToRecord and changed to DataEntry=True because of what I describe in this thread: https://www.accessforums.net/program...ect-48581.html

    Essentially it worked when I opened the form but was pushing back the last entry of the database after I used the combobox requery for the first time. Any ideas?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    How about GoToRecord in the combo box code?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    could you give a quick code example?

    thanks

  6. #6
    llkhoutx is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    I created a function to move between records with the arrow keys. It involved trapping the key strokes and knowing what form object was invoived. Take a look at the Key Down property, as I recall.

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I meant to add GoToRecord to whatever code you have behind the combo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    @llkhoutx, I found the Key Down property but I wouldn't have any idea what code to use. Anything you can offer?

    @pbaldy, this is the only code I have on the combo, could you be more explicit with how to add GoToRecord here?

    Private Sub Combo71_AfterUpdate()
    Me.Requery
    End Sub


    Thanks,

  9. #9
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    @pbaldy, I just figured it out and it worked! thank you!!

    Private Sub Combo71_AfterUpdate()
    Me.Requery
    DoCmd.GoToRecord , , acNewRec
    End Sub

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help! Locking records
    By jlgray0127 in forum Forms
    Replies: 1
    Last Post: 05-02-2014, 06:56 AM
  2. Replies: 4
    Last Post: 03-08-2014, 05:24 PM
  3. Replies: 12
    Last Post: 02-10-2013, 10:13 AM
  4. Locking Records in Subform
    By MuskokaMad in forum Forms
    Replies: 1
    Last Post: 04-02-2010, 06:34 PM
  5. Replies: 3
    Last Post: 01-05-2010, 10:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums