Results 1 to 2 of 2
  1. #1
    thangasiva is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    2

    OLEunbound onclick event

    I would like to add code to open the form to the on click event of an unbound OLE object. I know I can easily make a button to open the form and place it in the form , I just thought it would be nice to use this shape, copy and paste (round rectangle with some color) from ms-word 2007. I put the code in, but when I click the object it doesn't run, however, if I right click first then left click the code runs and open the form. Why is this and what do I need to do to make it run when clicked? No big deal, just thought it would be cool. anybody help me pls?
    My file name is "tense db"
    Form name is "sample" (to be open)
    OLEunbond object name = A1,Z1 to A50,Z50


    The form "sample" should be open when i click the ole object name "A1Z1 to A50,Z50".
    thats all for your code. thank you
    Last edited by thangasiva; 06-27-2010 at 08:35 PM. Reason: correction

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    I have never used OLEObject control. I use Image control.

    I don't know why requires right then left click. However, a workaround might be to use a button set as transparent and sized same as the OLEObject control and on top.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. OLEunbound onclick event
    By thangasiva in forum Access
    Replies: 1
    Last Post: 06-27-2010, 01:49 PM
  2. Set onclick via VBA
    By Gerry in forum Programming
    Replies: 6
    Last Post: 04-19-2010, 09:23 AM
  3. OnClick event
    By HotTomales in forum Forms
    Replies: 1
    Last Post: 12-24-2009, 08:10 PM
  4. Event question
    By nkenney in forum Forms
    Replies: 1
    Last Post: 07-01-2009, 11:34 PM
  5. Replies: 21
    Last Post: 06-03-2009, 05:54 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