I would like to be able to set some defaults based on the week number by using a table. I'm not sure how I would go about doing it in VB any suggestions? Something like this
wk# Combo Box Value
3 Me.cbo.xxx1 7
3 Me.cbo.xxx2 14
3 Me.cbo.xxx3 21
3 Me.cbo.xxx4 28
3 Me.cbo.xxx5 35
3 Me.cbo.xxx6 42
4 Me.cbo.xxx1 7
4 Me.cbo.xxx2 21
4 Me.cbo.xxx3 14
4 Me.cbo.xxx4 28
4 Me.cbo.xxx5 42
4 Me.cbo.xxx6 35
wk# Combo Box Value
3 Me.cbo.xxx1 7
3 Me.cbo.xxx2 14
3 Me.cbo.xxx3 21
3 Me.cbo.xxx4 28
3 Me.cbo.xxx5 35
3 Me.cbo.xxx6 42
4 Me.cbo.xxx1 7
4 Me.cbo.xxx2 21
4 Me.cbo.xxx3 14
4 Me.cbo.xxx4 28
4 Me.cbo.xxx5 42
4 Me.cbo.xxx6 35
Code:
If Me.opDefault = True Then
If wtb = 3 Then
Me.cbo.xxx1 = 7
Me.cbo.xxx2 = 14
Me.cbo.xxx3 = 21
Me.cbo.xxx4 = 28
End If
End If
[\code]