Results 1 to 6 of 6
  1. #1
    Thomasso is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Czech Republic
    Posts
    277

    Display images in continuous form if checkbox checked

    Hello,



    I have this continuous form of orders:

    Click image for larger version. 

Name:	db6.png 
Views:	28 
Size:	48.3 KB 
ID:	31508

    On the right side there are 6 pictures. I want them to show only when certain conditions are met.

    The first 3 mean this:
    - Ordered from distributor
    - In transit to us
    - Received from distributor
    For these I created Yes/No checkbox in the orders table and the data entry form, looking like this:

    Click image for larger version. 

Name:	db7.png 
Views:	28 
Size:	14.4 KB 
ID:	31510

    The other pictures visibility will be determined by dates.

    The data source for my continuous form is a query - showing all placed customer orders. Data entry order is connected directly to table orders.

    Can I do this using expression builder or will code be necessary?


    Thank you.
    Tomas

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Sorry, but on a continuous form, they either ALL show, or NONE show.
    There is no: some show, some dont.

    Tho, there may be a way to cheat this.
    have 2 image fields: 1 to hold the image, and a 'DisplayCopy' to display.
    if you want the image to display, update the DisplayCopy = OrigImage.
    if not, set the DisplayCopy=null.

    THEN it will show on continous forms.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Tomas,

    Untested, but it might be possible to use conditional formatting to "color code" the conditions rather than images.

    There is a post here that shows what can be done with some values and wingding font.

  4. #4
    Thomasso is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Czech Republic
    Posts
    277
    Thanks guys.

    So I am only able to change background colors etc, no way that my pictures will be shown, correct?

    Thanks,
    Tomas

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I haven't found a way based on google.
    ranman may have a sample or more details based on his response post #2.

  6. #6
    Thomasso is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Czech Republic
    Posts
    277
    Quote Originally Posted by ranman256 View Post
    Sorry, but on a continuous form, they either ALL show, or NONE show.
    There is no: some show, some dont.

    Tho, there may be a way to cheat this.
    have 2 image fields: 1 to hold the image, and a 'DisplayCopy' to display.
    if you want the image to display, update the DisplayCopy = OrigImage.
    if not, set the DisplayCopy=null.

    THEN it will show on continous forms.
    Sorry, I didn't get around to it till now. Thanks for the suggestion, it seems like it could work ..

    However, I can't find any information about "DisplayCopy" anywhere. Could you provide me with some elementary VBA structure of how you would approach this?

    And if I understand correctly, I should hide the image "holder" field and then display a copy of it, correct?

    Thanks,
    Tomas

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

Similar Threads

  1. Replies: 3
    Last Post: 06-21-2016, 11:38 AM
  2. display image if checkbox is checked
    By Casey Sanders in forum Reports
    Replies: 5
    Last Post: 04-03-2013, 04:49 PM
  3. Replies: 2
    Last Post: 10-09-2012, 10:07 AM
  4. Display Text Only if Checkbox is Checked
    By Rick5150 in forum Forms
    Replies: 2
    Last Post: 09-16-2012, 09:19 AM
  5. Replies: 17
    Last Post: 08-26-2009, 11:27 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