T
Teresa Robinson
Hello, all;
I am using Access from Office XP Pro (2002) on WinXP Pro (I think I
installed SP2, hold on and lemme check... yep, SP2 installed).
I've got a db that I've created forms on just for searching purposes.
I gave the db to my co-worker, and it worked fine on his machine (same
specs except he may not have SP2). I then added code that gathers up
the data from the textboxes and puts that data into a Word template at
various bookmarks in the file, then saves that file into a specific
directory. The db now gives an error message, "Can't find project or
library", on this bit of code:
Private Sub Combo62_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[User_PKEY] = " & str(Nz(Me![Combo62], 0)) <~~~error
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
The error is on the "str" bit above, which has been in the code the
entire time. I can't imagine why now, after adding code to insert
text into a Word document, this code does't work for him. He's tried
it on several machines, none work. So, after looking here and seeing
about compiling and saving, and .mde files, I figured that may solve
the problem.
But: in trying to make the .mde file from my .mdb, every time I try
one of two things happen: either Access shuts down immediately with a
window wanting me to report the incident to Microsoft, or Access just
sits there ignoring everything until I hit the 'x' about 8 to 10 times
and then select the end program button on the window that comes up
telling me that Access has stopped responding.
I ended up downloading Office SP3 yesterday, and four more updates
after that, and still the problem persists today. I am following the
directions from "Help" in making the .mde, and am unsure if this is
the same thing as "compile and save", since I don't see that option
anywhere in the menus or in "Help".
This would be so much easier in VB... *sigh*. But it can't be an
installable app, so I'm doing it in Access. Any advice is greatly
appreciated.
I am using Access from Office XP Pro (2002) on WinXP Pro (I think I
installed SP2, hold on and lemme check... yep, SP2 installed).
I've got a db that I've created forms on just for searching purposes.
I gave the db to my co-worker, and it worked fine on his machine (same
specs except he may not have SP2). I then added code that gathers up
the data from the textboxes and puts that data into a Word template at
various bookmarks in the file, then saves that file into a specific
directory. The db now gives an error message, "Can't find project or
library", on this bit of code:
Private Sub Combo62_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[User_PKEY] = " & str(Nz(Me![Combo62], 0)) <~~~error
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
The error is on the "str" bit above, which has been in the code the
entire time. I can't imagine why now, after adding code to insert
text into a Word document, this code does't work for him. He's tried
it on several machines, none work. So, after looking here and seeing
about compiling and saving, and .mde files, I figured that may solve
the problem.
But: in trying to make the .mde file from my .mdb, every time I try
one of two things happen: either Access shuts down immediately with a
window wanting me to report the incident to Microsoft, or Access just
sits there ignoring everything until I hit the 'x' about 8 to 10 times
and then select the end program button on the window that comes up
telling me that Access has stopped responding.
I ended up downloading Office SP3 yesterday, and four more updates
after that, and still the problem persists today. I am following the
directions from "Help" in making the .mde, and am unsure if this is
the same thing as "compile and save", since I don't see that option
anywhere in the menus or in "Help".
This would be so much easier in VB... *sigh*. But it can't be an
installable app, so I'm doing it in Access. Any advice is greatly
appreciated.