OK, I have fully working compiled VB6 (SP6) program.
Try to run on other computers, XP and Windows7 results in error 13.
Install VB6 on other computers same error.
Install VB6 SP6 and program works perfect.
I'll ask again what is the value of My_Docs when the error occurs?
btw are you sure that is the line that is generating the error? Error 13= Type Mismatch which indicates you have tried to use the wrong type of variable in a given operation but I see nothing on that line which could trigger such and error assuming My_Docs is a string variable.
I'll ask again what is the value of My_Docs when the error occurs?
btw are you sure that is the line that is generating the error? Error 13= Type Mismatch which indicates you have tried to use the wrong type of variable in a given operation but I see nothing on that line which could trigger such and error assuming My_Docs is a string variable.
The path is OK.
A proceeding line:
If DataEnvironment1.Connection1.State = adStateOpen Then
Will give the same error
I suspect SP6 is updating a data access component.
I can't work out which.
I have two instances of Microsoft Data Report Designer in Project References:
Both located C:\Windows\SysWOW64\
--------------
MSDBRPTR.DLL
Microsoft Data Report Runtime DLL - Version 6.0(SP4)
Version 6.1.97.82
315KB
--------------
MSDBRPT.DLL
Microsoft Data Report Active X Designer DLL - Version 6.0(SP4)
Version 6.1.97.82
327KB
--------------
Bookmarks