Results 1 to 15 of 15
  1. #1
    LJCiti is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    10

    Toggle buttons Automation

    I have 2 sets of toggle buttons, Set(field)1: high, med-high, med, med-low, low. Set(field)2: Yes & No. I want to automate that when high(example) is selected to auto fill, press, activate, etc. The Yes toggle. Keep in mind the toggle buttons are attached to a field and the buttons are numbers. High is 5, med-high is 4, etc. The yes/no are 1 and 0; respectively. How can I do that?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,824
    You have 6 toggle buttons?

    Are 5 buttons of set 1 in an Option Group?

    Is the Yes/No a Yes/No type field or a Number type?
    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
    LJCiti is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    10
    So I have these 2 set of toggle buttons:
    Set1:
    Set2:

    when it's done right it would look like this

    What I would like to do: if Highly,Satisfactory,Somewhat,Not Very or Needed ha been selected; then auto select the 'Yes' button.

    Can anyone assist?

  4. #4
    LJCiti is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    10

    Buttons






  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,824
    You did not answer questions.

    If you tried to attach images, nothing showing.
    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.

  6. #6
    LJCiti is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    10

  7. #7
    LJCiti is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    10
    Click image for larger version. 

Name:	YesNo.PNG 
Views:	28 
Size:	1.9 KB 
ID:	39749

    Click image for larger version. 

Name:	Rtgs.PNG 
Views:	28 
Size:	5.5 KB 
ID:	39750

    Click image for larger version. 

Name:	YesNoTaged.PNG 
Views:	27 
Size:	3.4 KB 
ID:	39751

    Click image for larger version. 

Name:	RtgsTag.PNG 
Views:	27 
Size:	7.0 KB 
ID:	39752

  8. #8
    LJCiti is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    10
    And Yes these are number fields

  9. #9
    LJCiti is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    10
    Yes = 1
    No = 0

    Highly = 5
    Satisfactory = 4
    Somewhat = 3
    Not Very = 2
    Needed = 1
    NA = 0

  10. #10
    accesstos's Avatar
    accesstos is offline Expert
    Windows XP Access 2007
    Join Date
    Dec 2018
    Location
    Greece
    Posts
    551
    Code:
    Private Sub Set2_AfterUpdate()
        Me.Set1 = Abs(Me.Set2 > 0)
    End Sub

  11. #11
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,824
    These toggle buttons are within 2 Option Group controls?
    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.

  12. #12
    LJCiti is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    10
    Yes Set1 and Set2 are fields within a table

  13. #13
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,824
    That does not answer the question.

    Do you know what an OptionGroup control is? Have you placed toggle buttons within an OptionGroup control?
    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.

  14. #14
    LJCiti is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    10
    Yes the 2 sets are Option Groups

  15. #15
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,824
    Did accesstos suggestion work?
    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: 4
    Last Post: 05-19-2018, 03:40 PM
  2. Toggle Buttons Programming
    By Kiwidude23 in forum Access
    Replies: 1
    Last Post: 10-25-2016, 05:23 AM
  3. Filtering Subform with Toggle Buttons
    By doubleohkevin in forum Forms
    Replies: 3
    Last Post: 09-30-2014, 02:13 PM
  4. Shape Effect on Toggle Buttons
    By dimoc in forum Access
    Replies: 5
    Last Post: 04-10-2014, 09:28 AM
  5. Replies: 1
    Last Post: 06-16-2012, 02:50 PM

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