Results 1 to 3 of 3
  1. #1
    notrino is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Location
    Izmir,Turkey
    Posts
    60

    DoCmd Command for Multipoint Area Application

    Hi,
    I attached my application. When I use single area (for example Alan1) for copy-paste application, below code is working without any problem on the button event.



    HTML Code:
    DoCmd.GoToControl "Alan1"DoCmd.RunCommand acCmdCopyDoCmd.GoToRecord , , acNewRecDoCmd.GoToControl "Alan1"DoCmd.RunCommand acCmdPaste
    But when I attached Alan2, Alan3,..... this code structure is not working for copy-paste application. For example attached application is including Alan1 and Alan2 areas. Where is my mistake? Thanks.
    Attached Files Attached Files

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,742
    See attached. The db that you uploaded was corrupt, so I copied contents to a new db to fix that.
    Then changed code in the click event to avoid copy/paste. Just saved contents of current record to insert in new record.
    Code:
    Option Compare Database
    Option Explicit
    
    
    Private Sub Komut8_Click()
        Dim sAlan1 As String
        Dim sAlan2 As String
        sAlan1 = Nz(Alan1)
        sAlan2 = Nz(Alan2)
    
    
        DoCmd.GoToRecord , , acNewRec
        
        Alan1 = sAlan1
        Alan2 = sAlan2
    End Sub

  3. #3
    notrino is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Location
    Izmir,Turkey
    Posts
    60
    Thank you.

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

Similar Threads

  1. Replies: 11
    Last Post: 08-22-2017, 05:50 PM
  2. Replies: 2
    Last Post: 02-27-2016, 10:59 AM
  3. Replies: 1
    Last Post: 08-27-2015, 06:05 AM
  4. Replies: 2
    Last Post: 05-19-2015, 06:56 AM
  5. Replies: 10
    Last Post: 09-15-2011, 03:58 PM

Tags for this Thread

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