fixious123
Registered User.
- Local time
- Today, 17:41
- Joined
- Oct 3, 2002
- Messages
- 49
What would be the correct code for this. Basically Im building a shot record database and have a Combo box that contains 3 different types of shots and when selected the DateAdd function calculates a due date. I hope this will reset for each record or be able to change for each individual. Any help greatly appreciated..
Private Sub Combo109_Change()
If Combo109 = "Typh-Vi" Then
Text86 = DateAdd("yyyy", 2, [Typhoid Taken])
If Combo109 = "Oral Typh" Then
Text86 = DateAdd("yyyy", 5, [Typhoid Taken])
If Combo109 = "Typh B" Then
Text86 = DateAdd("yyyy", 3, [Typhoid Taken])
End If
End Sub
Private Sub Combo109_Change()
If Combo109 = "Typh-Vi" Then
Text86 = DateAdd("yyyy", 2, [Typhoid Taken])
If Combo109 = "Oral Typh" Then
Text86 = DateAdd("yyyy", 5, [Typhoid Taken])
If Combo109 = "Typh B" Then
Text86 = DateAdd("yyyy", 3, [Typhoid Taken])
End If
End Sub