Results 1 to 2 of 2
  1. #1
    jtm013 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    117

    User Selected Record # not working properly


    Hello,

    I have a form which is used to edit data. I have it set up so that on open the user must input the record number they wish to edit.

    Code:
    Private Sub Form_Open(Cancel As Integer)
    Dim ControlNumber As String
    
    
    'This requests the user enter the desired control number
    ControlNumber = InputBox("Please enter your lowest Control Number", _
             "Input Required", "001")
    
    
    DoCmd.OpenForm "frm_pmTensileTest", , , "ControlNumber = " & ControlNumber
    
    
    End Sub
    The problem is that usually a user will need to edit multiple records and after they select their first record the form is filtered to only have that record available. This causes problems because the way this is used a user may need to edit record 642, 643, and 644. They will never need to go backwards. Subsequently this form is to allow the user to input their lowest control number (642 in our example) and then there is a Next Record button which allows the user to move forward to records 643 and 644. Since the above code filters the form to only have the specified record available the next button will not allow the user to move to the next record.

    Any and all help is appreciated. Thanks!

  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,652
    Is this what you want?

    http://www.baldyweb.com/Bookmark.htm
    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. Email Updates Not Working Properly
    By quirkyd in forum Import/Export Data
    Replies: 1
    Last Post: 10-26-2014, 09:24 AM
  2. Replies: 11
    Last Post: 06-05-2013, 08:15 AM
  3. Checkboxes not working properly
    By TK03 in forum Access
    Replies: 1
    Last Post: 12-24-2012, 09:04 AM
  4. Login form is not working properly
    By papa yaw in forum Forms
    Replies: 1
    Last Post: 12-19-2012, 05:25 PM
  5. Replies: 7
    Last Post: 08-19-2011, 02:57 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