display form on a specific date

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • Re: Loss of Internet Connection
    ... >display a regular web site. ... Can you ping by name successfully? ... Install and run Spybot. ... bit safer when posting to open forums. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Skinning apps
    ... They just don't display at all. ... asking about this on the forums, ... I guess it depends on whether I find an alternative; the CodeJock control ... fundamental area. ...
    (microsoft.public.vb.general.discussion)
  • Re: Commercial Sites follow up
    ... I am glad to see that 3DCADTips has chosen to take the high road and display ... the sites and tutorinls int their own browser window the way they should be ... Take for example my forums. ... where they do NOT require logins? ...
    (comp.cad.solidworks)
  • Re: Picture wont display
    ... >the picturtes/graphivs to display? ... LSP-Fix and WinsockLSPFix ... Spybot S&D has an install routine - run it. ... bit safer when posting to open forums. ...
    (microsoft.public.windowsxp.general)
  • Fedora Core 6 Display Problems
    ... I have a 17" Flat-Panel LCD monitor that should display 1280x1024 at ... Still, when I reboot, any changes I made go away. ... So...it seems I've exhausted the knowledge of the various forums I've ... been able to find when searching under the search terms I thought ...
    (comp.os.linux.setup)