Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compile error with popup calendar

Status
Not open for further replies.

gj0519

MIS
May 8, 2003
69
US
I receive a compile error when my code gets to frmCalendar.Value = Date.
It highlights date and gives me the error. When I click ok then my references window opens. Does anyone maybe have an idea of a reference I am missing. I have tried adding several, but no luck yet.
If I remove that piece of code the calendar works,but does not display the current date.
Thanks,

GJ
Code:
Private Sub cboStartDate_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Set cboOriginator = cboStartDate
    frmCalendar.Visible = True
    frmCalendar.SetFocus
    
    If Not IsNull(cboStartDate) Then
       frmCalendar.Value = cboStartDate.Value
    Else
        frmCalendar.Value = [blue]Date[/blue]
    End If
End Sub
 
Which reference is marked as MISSED ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
When the reference window opens it just highlights the last one that is checked.

GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top