OK here is the deal.
I have made a COM dll that hands excel (in vba) a disconnected recordset.
Then I delete all the query tables in a certain worksheet. The I recreate
them and point the RS to the querytable.recordset object. Now here is the
weird part. The program works fine when I debug the DLL but when in compiled
form excel keeps on throwing back the error when I try and refresh the
querytable (to show the data in the RS):
Application-Defined Error or Object-Defined Error
Why does this happen? I thought that maybe something was happening in the
DLL but no, everything is going fine. It is handing the RS back to excel
just fine.
Please, if you know anything about this could you please help me. I am a
desperate man who is currently way past a deadline.
If there is another way to paste a recordset into excel (effectively (not cell by cell)) then this is an acceptable work around.
Thanks,
I have made a COM dll that hands excel (in vba) a disconnected recordset.
Then I delete all the query tables in a certain worksheet. The I recreate
them and point the RS to the querytable.recordset object. Now here is the
weird part. The program works fine when I debug the DLL but when in compiled
form excel keeps on throwing back the error when I try and refresh the
querytable (to show the data in the RS):
Application-Defined Error or Object-Defined Error
Why does this happen? I thought that maybe something was happening in the
DLL but no, everything is going fine. It is handing the RS back to excel
just fine.
Please, if you know anything about this could you please help me. I am a
desperate man who is currently way past a deadline.
If there is another way to paste a recordset into excel (effectively (not cell by cell)) then this is an acceptable work around.
Thanks,