B
bjwheeler
Hi There,
I want to display a form only on the 15th day of every month.
Having looked a other forums around the place, i have tried a couple
of solutions however, they do not work... e.g
Private Sub Form_Open(Cancel As Integer)
Dim dte As Date
'Check to see if today's date is 15 of any month
dte = Format(Date, "DD/MM/YYYY")
If Left(dte, 5) = "15/01" Or "15/02" Or "15/03" Or "15/04" Or "15/05"
Or "15/06" Or "15/07" Or "15/08" Or "15/09" Or "15/10" Or "15/11" Or
"15/12" Then
'Turn off system warnings
DoCmd.SetWarnings False
DoCmd.OpenForm "CompactReminder"
End If
End Sub
Can someone please assist.
cheers
BW
I want to display a form only on the 15th day of every month.
Having looked a other forums around the place, i have tried a couple
of solutions however, they do not work... e.g
Private Sub Form_Open(Cancel As Integer)
Dim dte As Date
'Check to see if today's date is 15 of any month
dte = Format(Date, "DD/MM/YYYY")
If Left(dte, 5) = "15/01" Or "15/02" Or "15/03" Or "15/04" Or "15/05"
Or "15/06" Or "15/07" Or "15/08" Or "15/09" Or "15/10" Or "15/11" Or
"15/12" Then
'Turn off system warnings
DoCmd.SetWarnings False
DoCmd.OpenForm "CompactReminder"
End If
End Sub
Can someone please assist.
cheers
BW