D
datin
Hi,
currently Im developing a database for HR.I need to display only child that
will attend public examination in my report.Pls help me to solve this problem.
Private Sub DOB_AfterUpdate()
Dim age1 As String
Me!Age = DateDiff("yyyy", DOB, Date) + Int(Format(DOB, "ddmm") >
Format(Date, "ddmm"))
Refresh
If Me!Age = 15 Then
Me!Exam = "PMR"
Else
If Me!Age = 17 Then
Me!Exam = "SPM"
Else
If Me!Age = 12 Then
Me!Exam = "UPSR"
Else
If Me!Age = 19 Then
Me!Exam = "STPM"
Else
Me!Exam = ""
End If
End If
End If
End If
End Sub
thank you and regards
currently Im developing a database for HR.I need to display only child that
will attend public examination in my report.Pls help me to solve this problem.
Private Sub DOB_AfterUpdate()
Dim age1 As String
Me!Age = DateDiff("yyyy", DOB, Date) + Int(Format(DOB, "ddmm") >
Format(Date, "ddmm"))
Refresh
If Me!Age = 15 Then
Me!Exam = "PMR"
Else
If Me!Age = 17 Then
Me!Exam = "SPM"
Else
If Me!Age = 12 Then
Me!Exam = "UPSR"
Else
If Me!Age = 19 Then
Me!Exam = "STPM"
Else
Me!Exam = ""
End If
End If
End If
End If
End Sub
thank you and regards