riddicule123
Registered User.
- Local time
- Today, 23:42
- Joined
- May 27, 2015
- Messages
- 29
its not that i expect it to work it just isnt and i need as basic answeris as you can give e.g. this goes here like this lol. but yh im trying to get certain tickboxes to show when i click on a combobox value.and im not sure what i am doing wrong with the code.
Code:
Public Sub ChangeSelections(varComboValue As Variant)
Dim blApplication As Boolean
Dim blSolarDecs As Boolean
Dim blMoreInfo As Boolean
Dim blTerms As Boolean
Select Case varComboValue
Case "Application Pack"
blApplication = True
Case "Solar Decs"
blSolarDecs = True
Case "More Info Required"
blMoreInfo = True
Case "Terms and Conditions"
blTerms = True
End Select
Me.Probate.Enabled = blApplication
Me.ExtensionApplication.Enabled = blApplication
Me.TansferRequest.Enabled = blApplication
Me.ChangeOfOwnership.Enabled = blApplication
Me.Appendix5.Enabled = blSolarDecs
Me.Appendix6.Enabled = blSolarDecs
Me.PhotoIdutilitybills.Enabled = blMoreInfo
Me.GenerationMeterread.Enabled = blMoreInfo
Me.Proofofpurchase.Enabled = blMoreInfo
Me.TIC.Enabled = blMoreInfo
Me.PropertyType.Enabled = blMoreInfo
Me.LastPageOfApplication.Enabled = blMoreInfo
Me.AmendMCS.Enabled = blMoreInfo
Me.MPAN.Enabled = blMoreInfo
Me.NoOfDialsOnMeter.Enabled = blMoreInfo
Me.Domestic_T_s___C_s.Enabled = blTerms
Me.Business_T_S___C_S.Enabled = blTerms
Me.Summary_Only.Enabled = blTerms
End Sub
Private Sub Letter_Requested_AfterUpdate()
ChangeSelections "Application Pack"
ChangeSelections "Solar Decs"
ChangeSelections "More Info Required"
ChangeSelections "Terms and Conditions"
End Sub