Results 1 to 2 of 2
  1. #1
    behnamn is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1

    Access VBA copied form triggers previous forms event


    I have a form in Access, with the following event handler:

    Code:
    Private Sub Form_Open(Cancel As Integer)
    'some code
    End Sub
    I made a copy of this form (ctrl c ctrl v). But for some reason the new form triggers the form_open event of the its original form. Any ideas what I can do?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Comment out this code and create a new Open event for this form. Then copy the code of the original procedure into the new event code.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-27-2014, 11:53 AM
  2. Replies: 1
    Last Post: 03-13-2014, 10:11 AM
  3. Replies: 9
    Last Post: 12-08-2013, 07:04 PM
  4. Replies: 7
    Last Post: 11-18-2013, 09:51 AM
  5. Replies: 2
    Last Post: 01-21-2013, 11:28 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