Calender module not work properly

  • Thread starter Thread starter hermie
  • Start date Start date
H

hermie

I have downloaded the Access Calendar module from fontstuff.com
Now I have done all but get an error on the Date in the else statement which
says: Compile error: expected variable or procedure, not module!

What is wrong? I do exactly as described in the example and how to resolve

Private Sub cboStartDate_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
ocxCalendar.Visible = True
ocxCalendar.SetFocus
If Not IsNull(cboStartdate) Then
ocxCalendar.Value = cboStartdate.Value
Else
ocxCalendar.value = Date
End If
End Sub
 
No the module in integrated in the form and I give it no name

But I saw that I gave another Module the name Date I renamed it and now it
works perfect Thanx for the hint

Herman
 
Hi,
What is the name of the module, not Date I hope!
Access is telling you there is a problem with the name of
the module.
 
Back
Top