Results 1 to 4 of 4
  1. #1
    Silvera is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    May 2013
    Location
    California
    Posts
    65

    Dynamic Images

    I have been using Access for years now and basically self-taught with Forum help. My current project is to set up a database for my firm's details. I am an architect and we have literally thousands of details with no real search method other than general categories. I want to take advantage of the search function where you can type in parameters like window, sill, wood frame and get a list of details that meet those general parameters. From there they could get a list of file names that meet those parameters. With that information they could type in a file name and a GIF for the detail would be displayed for them. Doing a recent Google search I saw a video that seemed to do that but the simple code crashed, "Compile error" "Method or data member not found":



    Private Sub Form Current ()
    DetailNumb.Picture - DetailNumb
    End Sub

    DetailNumb is the field name with the path to the wanted GIF.
    Any suggestion will be realty appreciated

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    you cant subtract photos... maybe = sign.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Why do you have a '-' instead of '=' character?

    Referencing field name is not appropriate. Picture is property of Image control. So what is the name of the Image control on form or report?

    Image control has a ControlSource property (introduced with Access 2007). All you really need to do is set that property to an Attachment type field with embedded images OR set it to path of external file. So assuming the file name (without .gif extension) is stored in a field, ControlSource can be like:

    ="C:\Images\" & [fieldname] & ".gif"

    Now apply filter criteria to find that record.
    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.

  4. #4
    Silvera is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    May 2013
    Location
    California
    Posts
    65
    Yes "-" was a typo. I have the path with the ".GIF" in a table. Thanks for the quick response! I'll give it a go when I get home later today. I recognize your logo from the past. It's great to have folks like you and ranman256 available. I really appreciate what you folks do for the rest of us duffers!

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

Similar Threads

  1. Images
    By tysheena in forum Forms
    Replies: 1
    Last Post: 06-12-2013, 10:30 PM
  2. Dynamic Form, Dynamic labels/ captions?
    By JFo in forum Programming
    Replies: 15
    Last Post: 10-12-2011, 08:33 PM
  3. Question regarding images
    By FM_5k in forum Forms
    Replies: 5
    Last Post: 05-06-2011, 02:54 PM
  4. Combo Box / Images
    By mngisguy in forum Forms
    Replies: 0
    Last Post: 04-18-2011, 08:40 AM
  5. Replies: 17
    Last Post: 08-26-2009, 11:27 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