On Mon, Apr 14, 2008 at 5:22 AM, Graham Brown (CompSYS) <[EMAIL PROTECTED]>
wrote:

> Hi
>
> I've written a simple routine to upload into Quickbooks via the QODBC.com
> link. What I'm finding is periodically some records are not getting
> written
> into quickbooks. I can run the insert statements manually and they work so
> I
> suspect it has something to do with firing the inserts one after the
> other.
>
> Does SQLExec need a delay loop to wait until it has finished executing
> each
> insert command?
>
> This is the code for QB. It looks to see if the customer record is already
> on file, inserts if not then checks again to see if went through, finally
> it
> adds a child record for the job card.
>
---------------------------------------------------------
Are you taking for granted that QB is accepting your insert?

 =SQLEXEC(nH,cSQL)
                       =Sqlcommit(nH)

               Endif
               N=N+1

Why not wrap an if() around that first line and then execute the commit,
else insert until positive or 20 attempts have been made


-- 
Stephen Russell
Sr. Production Systems Programmer
Mimeo.com
Memphis TN

901.246-0159


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** 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.

Reply via email to