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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't find project or Library error

Status
Not open for further replies.

Kysteratwork

Technical User
Jan 3, 2005
45
LU
Hi all,

I have a question with regards to this code I use in a form to display time and date:

Private Sub Form_Timer()
Me!lblClock.Caption = Format(Now, "dddd, mmm d yyyy, hh:mm AMPM")
End Sub

Private Sub cmdClockStart_Click()
Me.TimerInterval = 1000
End Sub

Private Sub cmdClockEnd_Click()
Me.TimerInterval = 0

End Sub

But I get an error message saying:
"Compile error: Can't find project or library"
And format is higlighted in the code.

What does this mean?
Thank you for any indication you may have.

Kysteratwork
 
Open any code module in design view.
Choose Tools>References.
If any are marked Missing, deselect them and then reselect them.
Close References.
Choose Debug>Compile to check all is OK.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top