Aerowolf
Programmer
- Nov 6, 2002
- 64
I created a database in Access2000 that I have been using in Windows 2000. The database exists on a network drive and I access it through a shortcut on my desktop. I am switching to a brand new computer with XP Professional on it.
I've installed Office2000 on this new computer. I've copied the shortcut to the new computer and everything was working great until I tried to click on a button the has the following code attached to it:
Private Sub ProdReport_Click()
Set fs = CreateObject("Scripting.FileSystemObject")
If fs.FileExists("P:\Edwin\Production.snp") = True Then
fs.deletefile "P:\Edwin\Production.snp"
End If
DoCmd.RunMacro "ProdReport"
End Sub
When I click on the button that starts this code, I get the following error:
Compile error: can't find project or library.
I've also noticed that I can't create data pages by using the wizard because I get the following error when I try:
ActiveX component can't create object.
What's going on? I'm guessing something is not installed on the new computer that I need.
Help!!!!!
Edwin
I've installed Office2000 on this new computer. I've copied the shortcut to the new computer and everything was working great until I tried to click on a button the has the following code attached to it:
Private Sub ProdReport_Click()
Set fs = CreateObject("Scripting.FileSystemObject")
If fs.FileExists("P:\Edwin\Production.snp") = True Then
fs.deletefile "P:\Edwin\Production.snp"
End If
DoCmd.RunMacro "ProdReport"
End Sub
When I click on the button that starts this code, I get the following error:
Compile error: can't find project or library.
I've also noticed that I can't create data pages by using the wizard because I get the following error when I try:
ActiveX component can't create object.
What's going on? I'm guessing something is not installed on the new computer that I need.
Help!!!!!
Edwin