Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    control1 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2017
    Posts
    16
    Quote Originally Posted by Bob Fitz View Post
    I have tested the following and it works for me
    Use this code to open the second form
    Code:
    Private Sub btnSaveOpen_Click()DoCmd.Save
        DoCmd.OpenForm "frmViewIssue", , , , , , Me.ID
    End Sub
    Put this code in the On Open event of your form called "frmViewIssue"
    Code:
    Private Sub Form_Open(Cancel As Integer)
    
      If Not IsNull(Me.OpenArgs) Then
           Me.Filter = "[ID] = " & Me.OpenArgs
           Me.FilterOn = True
      End If
    
    End Sub
    Thanks for your suggestion Bob. For some very strange reason - this still isn't working. I tried the code that you suggested... and it still opens as a new record... Mind Blown!

    Bulzie - I've even changed the Autonumber field and removed the initial formatting "ECC1" - deleted all records (they are only test ones) and tried this again. Still, no joy.

    Would anyone be able to help if I shared the database? Can I send this via private message (don't really want it public)

    Cheers,



    Leigh


  2. #17
    control1 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2017
    Posts
    16
    Just thought I should update this thread. I managed to get this working by continuing to fiddle.

    I swapped out my DoCmd.Save to

    "DoCmd.RunCommand acCmdSaveRecord"

    And it works perfectly now.

    Cheers,

    Leigh

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 10-09-2016, 06:46 AM
  2. How to Open form and jump to certain record?
    By behnam in forum Programming
    Replies: 3
    Last Post: 06-05-2014, 08:45 AM
  3. Using a Combo Box to jump to a record
    By Access_Novice in forum Forms
    Replies: 3
    Last Post: 11-19-2013, 04:14 PM
  4. Text Box - Jump to Record
    By drow in forum Forms
    Replies: 5
    Last Post: 03-12-2012, 11:25 PM
  5. How to jump on a new record when forms open?
    By braveali in forum Programming
    Replies: 3
    Last Post: 02-21-2012, 08:17 AM

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