Hi, I have this complete Audit database at work that I inherited from someone who left late last year, it has been working fine up until this week. There are report form section that I can select reports by specific topics, but when I select and press that report button, instead of the report opening up, I get the this error message pop up
"Compile error: Can't find project or library" and then the Visual BAsic editor opens with code info displayed for the report from I selected. THe windows appear wit the "stLinkCriteria" selected., here is what the code looks like;
- Private Sub Command24_Click()
-
On Error GoTo Err_BtnAllOutstanding_Click
-
-
Dim stDocName As String
-
-
stDocName = "frmRptRecomBySection"
-
DoCmd.OpenForm stDocName, , , stLinkCriteria
-
-
Exit_BtnAllOutstanding_Click:
-
Exit Sub
-
-
Err_BtnAllOutstanding_Click:
-
MsgBox Err.Description
-
Resume Exit_BtnAllOutstanding_Click
-
End Sub
It nows happens on 3 out of 6 reports which use to work.
Any help or suggestion would be nice.
Cheers
Nekker