Discussion Locked

Help Me to Cancel this Error In VB6

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I Have Install VB6 on my PC and i start to make a small program
but when i write code like this :

Static numpress As Integer
Dim pos As Long
countrecord = Data1.Recordset.recordcount

the vb giveing me this error :
(( can't find project or library ))
also it's give same message if i use Date Function

if i write : dim countrecord as integer
it will work but before that i mean in the old program i had maked it was
work very well and i don't know what's wrong now

3 replies

by peyison

In you new program - have you created a reference to the database component you are using? (probably DAO or ADO).

Choose Project -> References and select either:

Microsoft ActiveX Data Objects 2.x Library

or

Microsoft DAO 3.x Object Library

Hope this helps.

by khalid

Thank Very Much for your help
and i know what you says But the problem
it was that library is correpted

This discussion is closed to new replies.