Consulting

Results 1 to 4 of 4

Thread: Images in access

  1. #1
    VBAX Regular
    Joined
    Feb 2007
    Location
    Illinois
    Posts
    68
    Location

    Images in access

    I am using an access database in conjunction with VBA Word. I am pulling data from the database and put that data on a userform. The Text and Numbers are working fine. Now I want to add a picture next to its corresponding data. I used the OLE Object type and inserted the picture in access. I went to the form added the picture to the already existing code and a quick image field on the form. Now I receive an error message saying that I can not put the picture in the database. How can I get around this or accomplish this task?

    Please help

    ~dave

  2. #2
    Knowledge Base Approver VBAX Master Oorang's Avatar
    Joined
    Jan 2007
    Posts
    1,135
    Location
    Please post the specific error message.

  3. #3
    I would suggest that you not store the image in the Access file. This has been shown to lead to massive database size bloat. Rather, store a path to image instead.

    See these links:
    http://office.microsoft.com/en-us/ac...802251033.aspx
    http://www.mvps.org/access/forms/frm0030.htm
    http://support.microsoft.com/kb/148463

  4. #4
    Knowledge Base Approver VBAX Master Oorang's Avatar
    Joined
    Jan 2007
    Posts
    1,135
    Location
    I agree with Zephid. Access supports only 2GB per database and then you're done. And if you are warehousing bitamaps or tiffs, you can chew that space suprisingly fast. Personally I store all of our imaged documents in a special directory and name them with a numeric primary key. Then in use vba to load them as needed into forms. This concept will work for word documents as well. Simply use the on_current event to load the image/document into an unbound control.
    In the alternative you can make the image/doc not load until the user clicks a "view" button. This will perform faster obviously.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •