I'm having a problem when trying to pull data out of an Access database to plug into an excel spreadsheet with VBA.
It's all working fine, apart from a nested IFF() statement, which is working fine when I run it manually in Access, but when I try to run it from VBA over ADO, it evaluates as if all the expressions are false (not the case).
I tried creating the query from VBA using ADOX to make sure the syntax was correct, but once again, it evaluates incorrectly over ADO, and is fine run from Access's GUI. Has anyone heard of/encountered this problem before, or have tips on how else I might tackle this problem?
Thanks in advance.
Versions:
MS Access 2003 (11.6566.8132) SP2
MS VBA: Retail 6.4.9972
ADO/ADOX v2.8
It's all working fine, apart from a nested IFF() statement, which is working fine when I run it manually in Access, but when I try to run it from VBA over ADO, it evaluates as if all the expressions are false (not the case).
I tried creating the query from VBA using ADOX to make sure the syntax was correct, but once again, it evaluates incorrectly over ADO, and is fine run from Access's GUI. Has anyone heard of/encountered this problem before, or have tips on how else I might tackle this problem?
Thanks in advance.
Versions:
MS Access 2003 (11.6566.8132) SP2
MS VBA: Retail 6.4.9972
ADO/ADOX v2.8
Comment