Yes Fred
On Wed, Oct 21, 2015 at 5:24 PM, jeff <[email protected]> wrote: > Does AERRORS() eork with SQLEXEC()? > > > > Sent from my T-Mobile 4G LTE Device > > -------- Original message -------- > From: Fred Taylor <[email protected]> > Date:10/21/2015 15:39 (GMT-07:00) > To: [email protected] > Subject: Re: Quickbooks ODBC > > So what is the failure message? Use AERRORS() after the SQLEXEC() to see > what it's complaining about. > > Fred > > On Wed, Oct 21, 2015 at 2:26 PM, Jeff Johnson <[email protected]> wrote: > > > Below is a test program to connect to a Quickbooks database. The > > SQLSTRINGCONNECT returns a 1 indicating I am connecting to the database. > > Any SQLEXEC returns -1 and I am using samples from the driver help > manual. > > Any idea why it won't work? Can the SQALSTRINGCONNECT return a 1 even > > though we are not fully connected? > > > > sConnectString = "Driver={CData ODBC Driver for QuickBooks > > 2015};DFQ=C:\mydatabase.qbw;OpenMode=M;OLE DB Services=-2;" > > > > lnHandle = SQLSTRINGCONNECT(sConnectString) > > > > MESSAGEBOX(TRANSFORM(lnHandle)) > > > > lnsuccess = SQLEXEC(lnHandle, "SELECT * FROM accounts") > > > > MESSAGEBOX(TRANSFORM(lnsuccess)) > > > > =SQLDISCONNECT(lnHandle) > > > > SELECT sqlresult > > brow > > > > -- > > Jeff > > > > Jeff Johnson > > [email protected] > > SanDC, Inc. > > (623) 582-0323 > > SMS (602) 717-5476 > > Fax 623-869-0675 > > > > www.san-dc.com > > www.cremationtracker.com > > www.agentrelationshipmanager.com > > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAJCBksqNHMuKNNQNkAwAAnNxYgd_bxLvYC71aeB=bkakgmd...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

