Results 1 to 5 of 5
  1. #1
    robertmarkdudley95 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    17

    Exclamation Show picture on field based on whether or not Yes/No box is checked

    I have an invoice form, and at present it appears fine. However, I want this picture:



    Click image for larger version. 

Name:	6.gif 
Views:	19 
Size:	1.2 KB 
ID:	6560

    to appear on the report if the job has been paid for. How do I do this?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    How do you know the job is paid? What field has value that could be used in conditional statement?

    Use code in the Detail section Format event.

    Me.imagecontrolname.Visible = expression that evaluates True or False
    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
    robertmarkdudley95 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    17
    Quote Originally Posted by June7 View Post
    How do you know the job is paid? What field has value that could be used in conditional statement?

    Use code in the Detail section Format event.

    Me.imagecontrolname.Visible = expression that evaluates True or False
    Well, the Paid? expression comes from a Yes/No box, so would it be something along the lines of:

    Me.imagecontrolname.Visible = Me.[Paid?].Checked = True

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Looks right, try it.

    BTW, advise not to use spaces, special characters, punctuation (underscore is exception) in names. Better would be IsPaid instead of Paid?.
    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.

  5. #5
    robertmarkdudley95 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    17
    Quote Originally Posted by June7 View Post
    Looks right, try it.

    BTW, advise not to use spaces, special characters, punctuation (underscore is exception) in names. Better would be IsPaid instead of Paid?.
    Great! I put it in the OnLoad event and it works great!

    Thanks for your help, June7

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

Similar Threads

  1. Replies: 1
    Last Post: 08-27-2011, 06:52 PM
  2. Replies: 1
    Last Post: 06-12-2011, 07:08 AM
  3. Counting only 'checked' Yes/No fields on a
    By pwdpwd in forum Programming
    Replies: 9
    Last Post: 04-14-2011, 09:28 AM
  4. Simple query to show when items are not checked?
    By mrwistles in forum Queries
    Replies: 28
    Last Post: 09-02-2010, 02:52 PM
  5. Show array of bytes as picture in form
    By HZwaan in forum Forms
    Replies: 0
    Last Post: 06-17-2010, 04:07 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