Results 1 to 4 of 4
  1. #1
    pritesharyan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2015
    Location
    India
    Posts
    32

    OnLoad event of Report to set logo [Image] in Attachment Control – MS Access

    I have created demo project here
    I try to load Logo [image] from table to Attachment control on Report.
    For that I have created Data macro see following image.
    Click image for larger version. 

Name:	question.jpg 
Views:	12 
Size:	91.6 KB 
ID:	20694
    Now OnLoad Event of Report I have Run that data macro as per below image.
    Click image for larger version. 

Name:	onload.jpg 
Views:	12 
Size:	140.5 KB 
ID:	20695
    I am getting this error.
    Click image for larger version. 

Name:	error.jpg 
Views:	12 
Size:	12.6 KB 
ID:	20696

    Please guide me to set image to attachment control on report.

    For detail view please download Demo project.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    You could just put the photo in an OLE field. I never have an error this way.

  3. #3
    pritesharyan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2015
    Location
    India
    Posts
    32
    i try to put only one copy in table and when ever require access from that table so i try this.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Include the table with the image in the form/report RecordSource.

    I have better luck with Image control. Set its ControlSource property to the field.

    I am not able to download linked file.
    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. Replies: 3
    Last Post: 12-22-2014, 11:57 AM
  2. Onload event doesn't work for filter
    By tagteam in forum Forms
    Replies: 2
    Last Post: 02-12-2014, 11:54 AM
  3. resize linked image onload
    By sconard in forum Reports
    Replies: 5
    Last Post: 09-25-2013, 11:09 AM
  4. Replies: 14
    Last Post: 09-20-2013, 09:36 PM
  5. Help! Header Logo Image on form won't print.
    By DjMorgan in forum Access
    Replies: 8
    Last Post: 04-29-2013, 06:46 AM

Tags for this Thread

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