I have recently encountered a problem with some VBA code in an RSView32 project which has me baffled. The code in question has been working perfectly for years but stopped working after a number of updates to Windows 2003 Server were applied last week. The updates were rolled back but this has not helped.
The Sub Routines affected are used to automatically send E-Mails using Outlook when called by RSView events. When these sub routines are called now the operation fails and a record is placed in the activity log stating "vbaexec send_message failed" together with a second record "an error occurred in subroutine 'send_message'. The issue is not trapped by the On Error instruction and does not stop the application as I would normally expect with RSView32. Commenting out large parts of the subroutine has revealed that the lines causing the problem all contain string handling functions such as "Left" and Str() but none of them are in any way out of the ordinary. Even the line "strDate = str(date)" causes the routine to fail.
My next step with this will be to completely reinstall RSView32 but I cannot understand what would cause such a specific problem and will not really be happy until I have got to the root cause of this. Does anybody have any ideas?
The Sub Routines affected are used to automatically send E-Mails using Outlook when called by RSView events. When these sub routines are called now the operation fails and a record is placed in the activity log stating "vbaexec send_message failed" together with a second record "an error occurred in subroutine 'send_message'. The issue is not trapped by the On Error instruction and does not stop the application as I would normally expect with RSView32. Commenting out large parts of the subroutine has revealed that the lines causing the problem all contain string handling functions such as "Left" and Str() but none of them are in any way out of the ordinary. Even the line "strDate = str(date)" causes the routine to fail.
My next step with this will be to completely reinstall RSView32 but I cannot understand what would cause such a specific problem and will not really be happy until I have got to the root cause of this. Does anybody have any ideas?