First of all, I am an absolute beginner. I've got an individual "toggle button" that changes its picture according to their status.
I tried similar sentences to got a two grouped "toggle buttons" and after many hours of testing and internet always I get the ERROR 2427.
I would appreciate someone check the code attached and give me some suggestion.
Merry Christmas and Happy New Year.
I tried similar sentences to got a two grouped "toggle buttons" and after many hours of testing and internet always I get the ERROR 2427.
I would appreciate someone check the code attached and give me some suggestion.
Merry Christmas and Happy New Year.
Code:
Private Sub Marco01_AfterUpdate() strPathToIcons = CurrentProject.Path & "\" Select Case Marco01.Value Case 1 If tglButt01.Value = True Then 'ERROR 2427 tglButt01.Picture = strPathToIcons & "birds.ico" 'True Else tglButt01.Picture = strPathToIcons & "birdsBW.ico" 'False End If Case 2 If tglButt02.Value = True Then 'ERROR 2427 tglButt02.Picture = strPathToIcons & "squirrels.ico" 'True Else tglButt02.Picture = strPathToIcons & "squirrelsBW.ico" 'False End If Case Else Exit Sub End Select End Sub
Comment