|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help needed -> Compile error: can't find project or library!
Hi
I have a problem which I can't seem to resolve, I get an error message "Compile error: can't find project or library!" The problem occurred when I installed Access run-time 2000 on one of the user's computers, I also logged myself into that computer, now it seems to have corrupted all my VBA codes and the inbuilt VBA codes like the one below I have attached a print screen of the error and highlighted the place where Access indicate the error... Can anyone help me? Code:
Option Compare Database
Option Explicit
Sub Form_Current()
Dim ParentDocName As String
On Error Resume Next
ParentDocName = Me.Parent.Name
If Err <> 0 Then
GoTo Form_Current_Exit
Else
On Error GoTo Form_Current_Err
Me.Parent![Product Subform].Requery
End If
Form_Current_Exit:
Exit Sub
Form_Current_Err:
MsgBox Error$
Resume Form_Current_Exit
End Sub
|
|
#2
|
|||
|
|||
|
Check the references. I've seen this error show up on built-in functions like msgbox when there is a missing reference to some other component.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Yes you were right, but I had to reset all the references... but it worked in the end. Thanx for your help!
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Help needed -> Compile error: can't find project or library! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|