When you first connect to any company file you will need to go through the authentication process. So you will need to the tell the end user to launch QuickBooks and open the company file for you. So you would use:
DFQ=.
where . means current company file open in QuickBooks. Once you know the full path of the company file you would change it to the path of the company file, for example:
DFQ=C:\QBOOKS\DW.QBW
So you can simply swap the connection string until you have a successful connection. You can also do a:
SELECT CompanyName FROM Company
to check you're working with the right company file.... just in case the user has a different company file open.
In regards to installing QODBC, see: Quiet install and selecting Region for further information. |