+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    moo
    moo is offline
    Banned
    Join Date
    May 2004
    Location
    Fort Walton Beach
    Posts
    647

    Question Code for VBA 2003 for viewing an OLE that resides in a Table Cell

     
    Here is my problem:

    I am using Access and VBA 2003. I have been successful using hyperlinks to a document's original location on our O:\ drive to display it when I click a button on a Form but want to try the embedded method instead. (i.e. OLE)

    I have some Word documents with which I have associated Names. I have listed these Names and embedded the documents into 2 columns in an Access Table. The Access Form has a field that displays the Name for a given embedded document. I want to be able to click on the Button for the Name Field on the Access Form and have it display the Word Doc by reading the location as the cell containing the embedded doc in the Table.

    I know that sounds confusing. Forget the "why I want to do this". It is someone else's project and I am just helping him figure it out. I say just hyperlink it but, whatever.

    Is there code that can let you, basically, open what is in a Table cell? I know the DoCmd.OpenForm "SomeForm" and I know DoCmd.OpenTable "SomeTable" but I essentially need equivalent code for DoCmd.OpenCell "SomeCell".

    Anyone?

  2. #2
    Junior Member
    Join Date
    Sep 2008
    Posts
    18
    So you're trying to grab data from table on an Access database?

  3. #3
    moo
    moo is offline
    Banned
    Join Date
    May 2004
    Location
    Fort Walton Beach
    Posts
    647
    The documents are embedded in a table on an Access DB. Which document I need to see depends on what is in the Names field on the Access Form.

    I compare the displayed name from the form to the name in the table and then I want to select and open the document that is associated with it.

    ???

  4. #4
    moo
    moo is offline
    Banned
    Join Date
    May 2004
    Location
    Fort Walton Beach
    Posts
    647
    Nevermind.....it can't be done that way. The solution was to embed all the documents into a Form instead of a table. The file size ends up to be ginormous but, whatever.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA code to run an Excel Query
    By bwolive in forum Applications and Operating Systems
    Replies: 0
    Last Post: March 30th, 2005, 04:18 PM
  2. Excel "Undo" in VBA code??
    By jjst34 in forum Applications and Operating Systems
    Replies: 2
    Last Post: November 26th, 2003, 09:14 AM
  3. Table borders are killin me, image and code inside....
    By Master Chief in forum Webmastering and Programming
    Replies: 8
    Last Post: July 11th, 2003, 02:34 PM
  4. Email VBA Code
    By jaypatel in forum Webmastering and Programming
    Replies: 2
    Last Post: February 8th, 2003, 08:25 PM
  5. VBA viewing code for navigation button generated by wizard
    By Turnip12 in forum Webmastering and Programming
    Replies: 3
    Last Post: November 28th, 2002, 03:40 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews