Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Inserting and Updating Invoices with ASP.NETSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v7 Forum

 New Topic 
 
 Post Reply 
[1]  
 Inserting and Updating Invoices with ASP.NET 
 Author   Message 
  paulconsulting 
  
 Group: Members 
 Posts: 19 
 Joined: 2006-12-05 
 Profile
 Posted : 2006-12-21 04:05:25

I purchased the server edition of QODBC but when I try to insert or update invoices the page just hangs and does nothing. Here is my code:

Dim sConnectStringInvoiceAdd As String
Dim sSQLInvoiceAdd As String
Const adOpenStatic = 3
Const adLockOptimistic = 3
Const adUseClient = 3

sSQLInvoiceAdd = "" & _
"INSERT INTO Invoice (CustomerRefFullName, ClassRefFullName, ARAccountRefFullName, TxnDate, TermsRefFullName, DueDate, SalesRepRefFullName, IsToBePrinted) " & _
"VALUES ('" & CustomerNameQB & "', '" & ClassRefFullName & "','Accounts Receivable', {d'" & ConvertInvoiceDateQB & "'}, 'Due on receipt', {d '" & ConvertDueDateQB & "'},'" & SalesRepQB & "',FALSE)"

Response.Write(sSQLInvoiceAdd & "<br><br>")
'Response.End()

sConnectStringInvoiceAdd = "DSN=QuickBooks Data;OLE DB Services=-2;"
Dim oConnectionInvoiceAdd As New ADODB.Connection
Dim oRecordsetInvoiceAdd As New ADODB.Recordset
oConnectionInvoiceAdd.Open(sConnectStringInvoiceAdd)
oRecordsetInvoiceAdd.CursorLocation = adUseClient

oRecordsetInvoiceAdd.Open(sSQLInvoiceAdd, oConnectionInvoiceAdd, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockOptimistic)

oRecordsetInvoiceAdd.Close()
oRecordsetInvoiceAdd = Nothing
oConnectionInvoiceAdd.Close()
oConnectionInvoiceAdd = Nothing

The sql statement is correct when I run it in the VBDemo. Any help would be appreviated. My client cannot do their job without this working.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-21 08:23:53

You cannot insert records into the Invoice table without inserting FQSaveToCache InvoiceLine transactions immediately prior to the Invoice insert as per: How do I create Invoices? 

 

  Top 
  paulconsulting 
  
 Group: Members 
 Posts: 19 
 Joined: 2006-12-05 
 Profile
 Posted : 2006-12-21 08:33:55
I tried that. It still hangs and does nothing. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-21 08:47:03
Please ensure you have updated to QODBC v7.00.00.204 and you have correctly configured the QODBC DCOMs or the Remote Connector. See: How can I see QuickBooks data in a Internet Explorer Browser using Windows XP?  

  Top 
  paulconsulting 
  
 Group: Members 
 Posts: 19 
 Joined: 2006-12-05 
 Profile
 Posted : 2006-12-21 09:09:10

I have version 7.00.00.199

How do I go about getting v7.00.00.204 ? I do not see an upgrade anywhere on the site. DO I have to pay again to get the latest version?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-21 10:23:49
See: How can I get the latest version of QODBC?  

  Top 
  paulconsulting 
  
 Group: Members 
 Posts: 19 
 Joined: 2006-12-05 
 Profile
 Posted : 2006-12-22 01:58:20

I installed the latest version but now my lookup queries will not work.

In version 7.00.199 I could run this query: SELECT MAX(FullName) As FullName, MAX(ListID) As ListID FROM Class WHERE FullName LIKE 'PETROLEUM TANKLINES DIVISION:WEST FLORIDA TERMINAL:13%'

In the latest version this gives me an "internal error"

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-22 10:14:51

I have just ran:

SELECT MAX(FullName) As FullName, MAX(ListID) As ListID FROM Class WHERE FullName LIKE 'PETROLEUM TANKLINES DIVISION:WEST FLORIDA TERMINAL:13%'

and:

SELECT MAX(FullName) As FullName, MAX(ListID) As ListID FROM Class WHERE FullName LIKE 'New Construction%'

because I don't have a 'PETROLEUM TANKLINES DIVISION' class, and both statements ran without error for me.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to