Results 1 to 2 of 2
  1. #1
    MrDummy is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    50

    Duplicate record


    Hello,

    With below Code I look up a record and is then shown in a form. This is defined as a standard form. Next is that I what to have this record added as new record to the same table (so it can be ammended to the users needs) but for some reason I cannot make it work. MMDGFID is Autonumber. Any suggestions?

    Code:
    Private Sub FindStandardDGD_Click()
    
    
    Dim rst As Recordset
    
    
    Set rst = Forms![frmStartScreen].Form.RecordsetClone
    
    
    rst.FindFirst "MMDGFID = " & Me.MMDGFID
    
    
    Forms![frmStartScreen].Form.Bookmark = rst.Bookmark
    
    
    rst.Close
    
    'needs some code here I think
    
    DoCmd.GoToRecord , , acLast
    
    Set rst = Nothing
    
    End Sub

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    What is the name of the form in which this code is located?

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

Similar Threads

  1. Replies: 7
    Last Post: 10-08-2015, 09:14 AM
  2. Replies: 3
    Last Post: 03-09-2013, 10:39 AM
  3. Goto Record when Duplicate Record Exists
    By rlsublime in forum Programming
    Replies: 13
    Last Post: 03-22-2012, 03:46 PM
  4. Replies: 5
    Last Post: 03-02-2012, 08:58 PM
  5. Duplicate last record to next record in form
    By jdhaldane in forum Forms
    Replies: 4
    Last Post: 12-17-2010, 04:22 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