Results 1 to 4 of 4
  1. #1
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287

    Report with values between 1 and 4; need a pic embedded depending on number

    Hey guys,

    Here is a pic of the crosstab that I made. Click image for larger version. 

Name:	xtab.PNG 
Views:	10 
Size:	40.9 KB 
ID:	14832

    The numbers 1-4 denote an employees performance in a given field. Currently, we use something called a Dot Report. It is done in excel, and all manually. An employee looks at a value for a salesperson and drags a color coded dot image (a red dot, black dot, gold star, or double star) to the field. It allows us to see who is/isn't performing at a glance.



    The crosstab that I linked is my attempt to automate this process of embedding images. Is there anyway that I could have access, or excel, automatically place an image depending on the number in the field?

    Thanks guys

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    What do you mean by 'crosstab that I linked'? Is this crosstab generated in Access? Or is it in Excel and you are linking to Excel?

    Embed the images where? Crosstab queries are not editable. Images in Access display on forms and reports.

    Can dynamically display image on Access report using Image control with an expression in ControlSource that references the path to an external image file.

    However, building report based on crosstab to run perpetually is not easy because crosstabs are so dynamic, especially when pivoting on date value.
    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.

  3. #3
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287
    Sorry June, I worded that poorly. "Crosstab that I linked" was just referring to the image that I posted.

    Here is an image of the actual dot report that we have now: Click image for larger version. 

Name:	dots.jpg 
Views:	10 
Size:	158.1 KB 
ID:	14833 So you can see what I am trying to accomplish.

    I wanted to make a report off of that crosstab that I posted the image of. But instead of having a bunch of 1-4's, VBA could embed a tiny image of the appropriate "dot."

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You said that report is an Excel product?

    Access is very different.

    Images do not display in tables or queries.

    Must use an Image control or OLEObject control on a form or report.

    Several ways to accomplish dynamic display of images.

    One might be to have a table with 4 records for the 4 images.

    tblImages
    Rating (number 1 - 4)
    Image (attachment)

    Join that table to the table of ratings linking on the rating number. Build CROSSTAB with the attachment field as the Value field using First function. However, I don't know if CROSSTAB can handle Attachment field. Even if it does, the issue of building report on a crosstab still applies.

    Bing: Access dynamic crosstab
    http://allenbrowne.com/ser-67.html
    Last edited by June7; 12-23-2013 at 04:03 PM.
    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. Copying rows depending on number of fields full
    By tmpgovrel in forum Queries
    Replies: 4
    Last Post: 09-03-2013, 12:11 PM
  2. Replies: 3
    Last Post: 05-03-2013, 09:03 AM
  3. Export embedded report to PDF
    By Aaron5714 in forum Reports
    Replies: 10
    Last Post: 10-22-2012, 11:47 AM
  4. Replies: 5
    Last Post: 09-20-2012, 11:34 AM
  5. Replies: 2
    Last Post: 03-04-2011, 10:12 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