Results 1 to 4 of 4
  1. #1
    dada is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    40

    need help with reference..

    I'm having a problem. I inserted an object Image in my report and named it "Picture" and i have a textbox that is bounded from a field in a table and named it "ImagePath". here's my code, I always got some errors, i don't know if my code is wrong or I just need to add a reference for this code to run.. thanks in advance! please help!



    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

    Picture.picture = ImagePath.value

    End Sub

    I also tried this but it wont work:


    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

    Picture.picture = ImagePath

    End Sub

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    what are you trying to do? set the image's path dynamically?

    change it whenever the formatting of the detail section changes??

  3. #3
    dada is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    40
    yes.. can you help me? hmm..

  4. #4
    dada is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    40
    here's my file.. i just can't load the picture from the table to my report.. please help..

    Attachment 1885

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

Similar Threads

  1. Reference Problem
    By ksmithson in forum Forms
    Replies: 9
    Last Post: 07-15-2010, 01:22 PM
  2. Reference table
    By Newcomer in forum Access
    Replies: 6
    Last Post: 06-03-2010, 03:08 PM
  3. Reference to a Query
    By starhannes in forum Forms
    Replies: 5
    Last Post: 05-09-2010, 02:53 PM
  4. Form Name Reference in VBA
    By Simon Sweet in forum Programming
    Replies: 0
    Last Post: 05-22-2008, 01:55 PM
  5. How to add Opensource reference???
    By loui in forum Access
    Replies: 0
    Last Post: 10-04-2007, 04:24 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