절차 너무 큰 오류를받은 나는 오류 메시지가 아래에받은 :내가 액세스 VBA 코드
내가 VBA는 64K의 제한 또는 절차에 따라 뭔가가 생각이 너무 커서
절차. 이 코드를 어떻게 분리하거나 단축 할 수 있습니까?
If txt29.Value = "" Then Box67.BackColor = labelnull.BackColor cmd29.Enabled = False Else cmd29.Enabled = True End If If txt29.Value = "Yellow" Then Box67.BackColor = LabelYellow.BackColor End If If txt29.Value = "Blue" Then Box67.BackColor = LabelBlue.BackColor End If If txt29.Value = "Red" Then Box67.BackColor = LabelRed.BackColor End If If txt29.Value = "Brown" Then Box67.BackColor = lableBrown.BackColor End If If txt29.Value = "Pink" Then Box67.BackColor = Labelpink.BackColor End If If txt29.Value = "White" Then Box67.BackColor = Labelpink.BackColor End If If txt29.Value = "Grey" Then Box67.BackColor = Labelpink.BackColor End If If txt29.Value = "Purple" Then Box67.BackColor = Labelpink.BackColor End If If txt29.Value = "Green" Then Box67.BackColor = LabelGreen.BackColor End If
나는 당신은 10 컨트롤을 설정 (10)의 기능을 각각 만들 수 100 개 버튼
고맙습니다. – Dana