Results 1 to 2 of 2
  1. #1
    harry1987 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    5

    Onclick turn option button to red


    I need a way to turn the option button to RED,between YES/NO when NO option is selected its background should turn to red.

    Please help.

    Thank you

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Code:
    if optBtn1.value then
       lblBtn1.forecolor = vbRed     'turn the label of the option button red
    else
       lblBtn1.forecolor = vbBlack
    endif

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

Similar Threads

  1. Button OnClick to trigger Query results
    By rhubarb in forum Programming
    Replies: 9
    Last Post: 05-18-2014, 10:38 AM
  2. make fields visible onclick() button
    By rivereridanus in forum Programming
    Replies: 4
    Last Post: 06-25-2012, 11:08 PM
  3. Replies: 1
    Last Post: 10-06-2011, 02:28 PM
  4. OnClick Cmd Button vs Image
    By mseeker22 in forum Programming
    Replies: 1
    Last Post: 07-14-2011, 08:28 AM
  5. Change Value using Button OnClick
    By nchesebro in forum Programming
    Replies: 1
    Last Post: 06-23-2011, 02:47 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