Results 1 to 3 of 3
  1. #1
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568

    Creat button object in order to pass it to function

    Hi,

    how can i set the current button object in vba code?

    Code:
    Private Sub Button_new_Click()
    
    
    Dim ButonObj As CommandButton
    Set ButonObj = Me
        
    End Sub
    This is not working...
    thank you for helping me,
    Best wishes,


    Jacek

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    try

    set butonObj=me.button_new

  3. #3
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    ok thank you it is working !

    Jacek

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

Similar Threads

  1. Creat a Clear or Reset button
    By rebfein in forum Forms
    Replies: 8
    Last Post: 11-03-2017, 05:19 PM
  2. Pass textbox object into form
    By jaryszek in forum Modules
    Replies: 5
    Last Post: 11-02-2017, 05:47 AM
  3. Navigation Ribbon - object order
    By woodduck in forum Access
    Replies: 1
    Last Post: 01-12-2015, 11:43 AM
  4. Replies: 5
    Last Post: 09-09-2012, 04:14 PM
  5. how to creat purchase order
    By arctushar@yahoo.com in forum Access
    Replies: 5
    Last Post: 10-07-2010, 08:14 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