R
Robbin
I have this neat little birthday script that I have taken (by permssion) from
another database, and I'm trying to make it work.
I've put the code in the "On Open" event on my form, but it keeps asking me
to do something with the "Birthday Today" part of the code. Seems like this
is a reference that is missing.
Can anyone suggest a fix?
Private Sub Form_Current()
If Not IsNull([DateofBirth]) Then
If BirthdayToday([DateofBirth], Date) Then
Me.lblBirthdayToday.Visible = True
Me.OLEBirthdayCake.Visible = True
Else
Me.lblBirthdayToday.Visible = False
Me.OLEBirthdayCake.Visible = False
End If
Else
Me.lblBirthdayToday.Visible = False
Me.OLEBirthdayCake.Visible = False
End If
End Sub
Thanks in advance.
another database, and I'm trying to make it work.
I've put the code in the "On Open" event on my form, but it keeps asking me
to do something with the "Birthday Today" part of the code. Seems like this
is a reference that is missing.
Can anyone suggest a fix?
Private Sub Form_Current()
If Not IsNull([DateofBirth]) Then
If BirthdayToday([DateofBirth], Date) Then
Me.lblBirthdayToday.Visible = True
Me.OLEBirthdayCake.Visible = True
Else
Me.lblBirthdayToday.Visible = False
Me.OLEBirthdayCake.Visible = False
End If
Else
Me.lblBirthdayToday.Visible = False
Me.OLEBirthdayCake.Visible = False
End If
End Sub
Thanks in advance.