Can't Find Project or Library

J

Julius_Council

I have an Access Database that allows me to send out a training module. When
the person has completed the training he/she clicks a button indicating that
they "have read" the training. I recently updated to Windows XP and now I'm
getting the error when I try to click the I read button to test the alert.

The error is:
Can't Find Project or library.
line of code that the error is referring me to is:

MyString = Space(mysize)

The word space is highlighted. Please advise. I have provided some of my
code below.

Public Function startup()
Dim mysize As Long
Dim MyString As String
Dim Currentuser As String
Dim CurrentDocument As String

mysize = 256
MyString = Space(mysize)
ret = GetUserName(MyString, mysize)
Currentuser = Left(MyString, 5)
GlobalCurrentUser = Currentuser
CurrentDocument = Command()
If CurrentDocument <> "" Then
' ret = MsgBox("By clicking on YES below, I agree that I have read
and understood the following Document: " & CurrentDocument, vbYesNo,
"Confirmation")
' If ret = vbYes Then
Dim myset As Recordset
Set myset = CurrentDb.OpenRecordset("Select * from Employeelog")
myset.FindFirst "(userid = '" & UCase(Currentuser) & "') and
(DocumentTitle = '" & CurrentDocument & "')"
If myset.NoMatch Then
myset.AddNew
myset("Userid") = UCase(Currentuser)
myset("DocumentTitle") = CurrentDocument
myset("Userreaddate") = Format(Now, "mm/dd/yyyy")
myset("userreadtime") = Format(Now, "Hh:Nn:Ss AM/PM")
myset.Update
myset.Close
MsgBox ("It has been recorded that you read " &
CurrentDocument & ".")
Else
MsgBox ("Records indicate you already read this document.")
End If
'End If
DoCmd.Quit
Else
DoCmd.OpenForm "Switchboard", acNormal
End If
End Function
 
P

Paolo

Hi Julius,

verify in the references that nothing is missing.
To see the references open a vba window (something with vba code in it) goto
tools menu and choose references. In the box that'll open check if something
is marked with MISSING. In this case you must browse to find the new location
of the missing dll.

HTH Paolo
 
J

Julius_Council

Well the ISScriptLibrary file is the one indicated as MISSING. But....it
doesn't seem to be on my computer anywhere! I suppose I can download the file
 
P

Paolo

Try to just uncheck it 'cause I don't think you use function from this
library, but a missing library in the references always causes problems.

Cheers Paolo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top