M
Murph492
Hello,
I am trying to sort out the following issue. It worked fine on a Windows
2000 machine with Office 2000 installed, but after moving it to an XP machine
with Office 2003, the function dies with no discernable error cause.
I have a function that selects records from a table into a recordset, opens
a report filtered on a field in the record set, then exports the report to
the server in .rtf format.
The loop runs through the first few records fine, but after say 5-8 records,
the function just "dies" (for lack of a better term). It quits running at all
and won't get caught in the error routine.
Here's a synopsis of the code:
Function SendReports()
Create New Record Set RS
Fill RS
For each record in RS
open report "MyReport" filtered on RS("agencynum")
Export MyReport to .rtf
Move to next record
End function
Obviously this is very simplified, so please ask me if you need more clarity.
Does anyone have any suggestions on what to try? I've been frustrated by
this for a while now.
Thanks in advance for any and all help.
I am trying to sort out the following issue. It worked fine on a Windows
2000 machine with Office 2000 installed, but after moving it to an XP machine
with Office 2003, the function dies with no discernable error cause.
I have a function that selects records from a table into a recordset, opens
a report filtered on a field in the record set, then exports the report to
the server in .rtf format.
The loop runs through the first few records fine, but after say 5-8 records,
the function just "dies" (for lack of a better term). It quits running at all
and won't get caught in the error routine.
Here's a synopsis of the code:
Function SendReports()
Create New Record Set RS
Fill RS
For each record in RS
open report "MyReport" filtered on RS("agencynum")
Export MyReport to .rtf
Move to next record
End function
Obviously this is very simplified, so please ask me if you need more clarity.
Does anyone have any suggestions on what to try? I've been frustrated by
this for a while now.
Thanks in advance for any and all help.