So i need to add a button that saves and resets for each different item in a combobox.
for example an attendance roll
(Name1 Name2 Name3 are combobox items)
when Name 1 is selected in the combobox a button appears and can be clicked to change colour between red and green (red = absent, green = attending)
after name1 button has been changed to the correct colour the user changes the selected item to Name2 and does the same.
However, if the user selects the item Name1 again the button will change to the colour selected when the Name1 was originally selected.
*Edit: the string for Name1, Name2 and Name3 is inputted by the user so this will not work.
for example an attendance roll
(Name1 Name2 Name3 are combobox items)
when Name 1 is selected in the combobox a button appears and can be clicked to change colour between red and green (red = absent, green = attending)
after name1 button has been changed to the correct colour the user changes the selected item to Name2 and does the same.
However, if the user selects the item Name1 again the button will change to the colour selected when the Name1 was originally selected.
*Edit: the string for Name1, Name2 and Name3 is inputted by the user so this will not work.
Code:
If ComboBox1.text = "Name1" then Button1.Visible = True
Comment