Originally Posted by
NigelIT
Hi,
I'm the friend. Sorry about the delay ... I am building a barn with a friend and we work 7 days and 7 nights (well, until about 10 pm).
I developed the QODBC stuff using Access 2003 so I use ADODB recordsets to retrieve the data from QB. All the QB tables are linked to my Access database using QODBC and I access them like I would retrieve data from an Access table. I define the SQL in a string field and open an ADODB.Recordset. I keep the queries as simple as possible. In some cases, I do add a where clause to the SQL select like when I extract invoices to calculate commissions. It is a huge table and even though the query takes forever to run, it is still quicker than sequentially accessing every record. It only runs once a month so the delay is acceptable.
I use Admin as the user for QODBC. I didn't want to deal with difficulties in accessing data. I have never tried using an alternate userid so I don't have an answer for that.
Feel free to ask questions. I don't get to my PC often so it is unlikely I will answer more than once per day but I will do my best. I went through a lot of pain learning how this works so I am happy to share.