Results 1 to 2 of 2
  1. #1
    JaschaMuller is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    1

    Displaying an Attachment Query in a Form

    Hi
    I am a true beginner in access programming, so excuse if my methods isn't the best, and any advice would be much appreciated.

    My main problem is displaying a Query I did on an attachment field in my main table on a form.
    This is what i am working with:
    Access 2007
    My main table name : Table2
    Attachment column name in Table2 : Target_photo
    Query name: QuerySpecGraph (Query on the attachment field)

    The query works perfectly fine when I run it and gives me the correct result. Now to display the query on the form I added an new attachment under controls and edited the control source to display the query results.

    I used the function dlookup:

    =Dlookup("Target_photo","QuerySpecGraph")

    I tried similar code on a text box, with a text Query and that worked fine. However it does not want to work for the attachment.



    Then I tried to analyze the situation to see if the query is the problem, so changed the attachments control source to:

    =Dlookup("Target_photo","Table2")

    this was to see if even a basic dlookup function works in the attachments control source, but yet again the attachments box stays empty (Again I tested the simple dlookup function with a text box to see if my table is the problem, but the textbox's dlookup works fine)

    I do not know what I am doing wrong, or if it is even possible to do what im trying to do! Any advice would be much appreciated, and if there is away around this I will gladly explain in more detail what im trying to do.

    Thanx
    JaschaMuller

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    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.

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

Similar Threads

  1. Displaying query results in form
    By celito in forum Access
    Replies: 2
    Last Post: 08-27-2011, 09:14 AM
  2. Add an attachment to form
    By j2curtis64 in forum Forms
    Replies: 2
    Last Post: 04-20-2011, 11:56 AM
  3. Displaying query results within a form
    By Remster in forum Forms
    Replies: 5
    Last Post: 10-05-2010, 09:56 PM
  4. Displaying Query Properties in a Form
    By Bjar in forum Programming
    Replies: 1
    Last Post: 07-16-2008, 07:51 AM
  5. Form field not displaying in query
    By Valeda in forum Queries
    Replies: 2
    Last Post: 05-05-2006, 10:08 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