I have a program that is supposed to access a ms access database, pull the information, and then post it to a MSOWC spreadsheet.
If I run the code from VB6 it works fine, but when I compile it it crashes with an "unhandled exception...Access violation writing location..."
When I debug the program it looks like the error is happening when it tries print the recordsource (rs) with the .value command at the end (rs("[field name]").value). If I kick .value out of the code it gets hung up on the next .value line. Can anyone tell me why it does this in the .exe and how to fix it or work around it?
Thanks
If I run the code from VB6 it works fine, but when I compile it it crashes with an "unhandled exception...Access violation writing location..."
When I debug the program it looks like the error is happening when it tries print the recordsource (rs) with the .value command at the end (rs("[field name]").value). If I kick .value out of the code it gets hung up on the next .value line. Can anyone tell me why it does this in the .exe and how to fix it or work around it?
Thanks