Results 1 to 2 of 2
  1. #1
    brharrii's Avatar
    brharrii is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Jun 2012
    Location
    Seattle, WA
    Posts
    63

    File Path determines image imbeded in report - Not working

    I am using the following code to imbed an image on my report.

    Code:
    Option Compare Database
    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    If IsNull(Me.ImagePath) Then
     Me.ImgPic.Picture = "O:\Bellingham\Intranet\Production\Labels\WIP\wip.bmp"
     Else
     Me.ImgPic.Picture = Me.ImagePath
     End If
    End Sub
    I've used it before and never had problems with it, but now it only works intermitently. For certain records it works fine, for others it gives me an error message that says that a custom macro failed to run and then when I push debug it displays my code and highlights the line:



    "Me.ImgPic.Picture = Me.ImagePath"

    I've verified that the path in ImagePath is correct on both records. What else could I be missing?

    Thanks!

  2. #2
    brharrii's Avatar
    brharrii is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Jun 2012
    Location
    Seattle, WA
    Posts
    63
    This ended up being an issue with the source code of the report. I had messed up a join on one of my tables and it ended up causing problems when I tried to run a report.

    Thanks all!

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

Similar Threads

  1. Dynamic/Variable Image File on Report
    By JoeM in forum Reports
    Replies: 5
    Last Post: 02-26-2013, 06:59 AM
  2. Replies: 3
    Last Post: 07-30-2012, 02:16 PM
  3. Replies: 10
    Last Post: 03-04-2012, 12:17 AM
  4. Replies: 1
    Last Post: 09-27-2010, 10:10 AM
  5. parametrize file path
    By ysrini in forum Access
    Replies: 3
    Last Post: 03-01-2010, 09:37 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