Results 1 to 5 of 5
  1. #1
    bosve73 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    22

    Print Linked Images in a Report

    I have a problem with printing linked images in a report. I am using the tip from this site: http://www.tek-tips.com/faqs.cfm?fid=399 but i can't get it working in my DB as I am getting the run time error 2465 access can't find the field I am reffering to. I have doublechecked the field is there so there must be something else I am missing.

    I have attached my dummyDB so that someone could point me to the right direction .

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    I checked PicLoc Field and you already have the extension .bmp added so its not necessary to add in the code any more.

    Put PicLoc Field on the report and hide it setting Visible to No.

    Here I have put the folder in my C drive you can use the path of your choice.



    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    Me!oleSymbolsReport.Picture = "C:\EP\" & Me.PicLoc
    End Sub

  3. #3
    bosve73 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    22
    Quote Originally Posted by maximus View Post
    I checked PicLoc Field and you already have the extension .bmp added so its not necessary to add in the code any more.

    Put PicLoc Field on the report and hide it setting Visible to No.

    Here I have put the folder in my C drive you can use the path of your choice.



    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    Me!oleSymbolsReport.Picture = "C:\EP\" & Me.PicLoc
    End Sub
    Thanks! Now it works the way it's expected. Just one noob question :
    Why do I have to have a field PicLoc on my report?

  4. #4
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Yes here its important that the PicLoc Field is there on the report as the path in the VBA code uses the value of the field as reference.

  5. #5
    polarbearman is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2012
    Posts
    1

    Print Linked Images in a Report

    I realize that the I am referring to an old post, but I was wondering if the same principle can be applied to the page header section instead of the detail section.

    I wish to be able to change all my reports so that that image is static. The image will be the company logo and should the logo change, all I would have to do is replace the file on the network share, but maintain the same name.

    Is this possible?

    Polarbearman

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

Similar Threads

  1. Can't see sub report in print preview
    By LoggyDoggy in forum Access
    Replies: 1
    Last Post: 04-20-2010, 05:38 PM
  2. Print Single Report
    By emkwan in forum Access
    Replies: 1
    Last Post: 01-29-2010, 11:19 AM
  3. Replies: 17
    Last Post: 08-26-2009, 11:27 AM
  4. Images in report
    By rudyp in forum Reports
    Replies: 1
    Last Post: 03-24-2009, 09:51 PM
  5. Access Report and embedded images
    By joypanattil in forum Reports
    Replies: 0
    Last Post: 11-22-2008, 03:50 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