Results 1 to 5 of 5
  1. #1
    m0aje is offline Novice
    Windows XP Access 2000
    Join Date
    Nov 2012
    Posts
    10

    Command button to view PDF, excel file, or jpeg from object within database table

    Greetings all,


    I have created a database for a church cemetery. It contains the usual names, birthrates deaths, etc.... I have also created a map of the cemetery in PDF format with the lot number highlighted which is assigned to a particular record. I did the same in excel with a layout of the lot and a JPEG picture of the grave marker. In my table I created Three columns - Site Plan, Lot Plan, and Grave marker. I insert the specific site plan, lot plan, and jpeg picture using the "insert object" in the table. On my form after a search, I have created three buttons.. Site Plan, Lot Plan & Grave Marker.
    I have looked and experimented trying to assign these command buttons to open these files on the form. I don't have any experience with macros or VB code. Most of what I have done is through simple queries and trial and error, Access forums, and dumb luck.
    Any help would be most grateful on how to assign these buttons to my table. Be it macro or whatever.

    Thanks very much.

    m0aje

  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,931
    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.

  3. #3
    m0aje is offline Novice
    Windows XP Access 2000
    Join Date
    Nov 2012
    Posts
    10

    Command Button

    Thanks June7. I see where it shows me how to put an image on a button, but so far I cannot find where it tells me how to "link" the button to the image/PDF, etc.. that I have inserted into the table. Unless I missed it, tt seems to suggest it needs to be done using code, which I am not familiar enough with. I will keep looking though. Thanks for your help!

    //m0aje//

    Quote Originally Posted by June7 View Post

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Access versions before 2007 require VBA code for dynamic display of images. That is the best article I've ever encountered on the issue.
    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.

  5. #5
    m0aje is offline Novice
    Windows XP Access 2000
    Join Date
    Nov 2012
    Posts
    10
    Thanks June7. I was afraid of that, as I don't know VBA code. Anyway, I appreciate your help and for supplying me a reference to go to.. I'll keep playing with it.

    Best regards,

    //m0aje//


    Quote Originally Posted by June7 View Post
    Access versions before 2007 require VBA code for dynamic display of images. That is the best article I've ever encountered on the issue.

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

Similar Threads

  1. Replies: 8
    Last Post: 06-25-2014, 08:03 AM
  2. Replies: 2
    Last Post: 08-05-2012, 06:32 PM
  3. Replies: 3
    Last Post: 05-23-2012, 03:05 AM
  4. Replies: 6
    Last Post: 12-27-2010, 10:26 PM
  5. Command Button to Find .doc file
    By cg1465 in forum Forms
    Replies: 8
    Last Post: 09-15-2010, 08:28 AM

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