Bob
The data source is my companies Sage accounting system so its not really possible to send it. I could pull part of two of the files I am using into two worksheets, but I dont think you can use an ODBC link from Excel to Excel. If that would help let me know
Any way here is the Function I use to generate the SQL string.
During my testing I had Remd out everything except SELECT, the first field, FROM one table, and I still got the error.
The parameter StartD is not used in this SQL string, but it is in others as a criterion to set the earliest WM.INVOICE_DATE
John
Bookmarks