Calender module not work properly

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
 
H

hermie

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
 
D

Dan Artuso

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top