Results 1 to 8 of 8
  1. #1
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

    Using .bmp files

    I'm trying to make a simple way for the user to enter pictures. I found that Access will allow OLE with .bmp files. I make a system defaults table to hold the information so that different forms and reports can use the information. However, when I try to use the DLOOKUP to use the .bmp files, it won't bring it into the form I'm trying to bring it into. Is there a way to do this?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    You wouldn't DLOOKUP, you'd open the form directly, via the key.
    docmd.openForm "myForm",,,"[id]=" & me.ID

    the form would have the image on it.

  3. #3
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Open the form directly? I want the system defaults to stay in the background. I only want to call up the pictures embedded into the table to use in other forms.

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    The form shows the picture. You can't see pictures in a table.

  5. #5
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    I'm not quite following. I shouldn't do a DLOOKUP. Which means I need to have the form open to get the value from that form. I did tried to get the picture from the form while open (=Forms![SystemDefaults]![Logo4]) Even with the form open, it didn't pull up the picture. The form it's on is called [SystemDefaults]. The field name is {logo4].

  6. #6
    AccessPower's Avatar
    AccessPower is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2016
    Posts
    165
    How many images are being used and what is the criteria that causes them to change. There may be a simpler way to do this.

  7. #7
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    I created a default table [tblSystemDefaults]. I made a a form for it [frmSystemDefaults]. I made simple entries (Name, address, phone, etc.) I have 4 pictures and 4 captions for each.

  8. #8
    AccessPower's Avatar
    AccessPower is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2016
    Posts
    165
    So why not do this for your setup

    tblSystemDefaults:
    FullName
    Address
    Phone
    ImageGroup

    tblImageGroups:
    jncImageGroup (related to the table above)
    GroupImage (Attachment field that stores an image)

    Now you can set your records so that they display the required group image. OLE is an older technology, so use attachment fields.

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

Similar Threads

  1. Replies: 2
    Last Post: 10-14-2016, 12:27 PM
  2. using mdb files which are backed up hourly into zip files
    By Robbie MacKinnon in forum Access
    Replies: 3
    Last Post: 05-05-2015, 05:02 AM
  3. Replies: 4
    Last Post: 05-15-2014, 12:49 PM
  4. PDF OLE files
    By sam1 in forum Access
    Replies: 0
    Last Post: 11-24-2011, 07:26 AM
  5. Replies: 1
    Last Post: 02-21-2011, 09:55 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