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 : RecordSet not iterating for QuickBooks OnlineSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 RecordSet not iterating for QuickBooks Online 
 Author   Message 
  Abbas 
  
 Group: Members 
 Posts: 2 
 Joined: 2006-12-06 
 Profile
 Posted : 2006-12-07 01:48:50
The following is the code snipet. The query successfully iterates and the following happens:

rs.EOF = false (good)
However, all fields have empty values.
and rs.MoveNext cause invalid BookMark value.

Is there anything incorrect with the code snippet.

The SQL query executes fine in the VB DEMO query executor.


Public Sub loadTimeEntry(ByVal dtStart As Date, ByVal dtEnd As Date)
    Dim connectString As String
    Dim sql As String
    Dim rs As New ADODB.Recordset
   
    If conn Is Nothing Then
        Set conn = New ADODB.Connection
        connectString = "DSN=PayRollSystem"
        conn.Open connectString
    End If
   
    'Load the actual time entry data
    sql = "select EntityRefListID,EntityRefFullName,CustomerRefListID, CustomerRefFullName, ClassRefListID, ClassRefFullName, Rate, DurationMinutes from TimeTracking where TxnDate between {d '" & Format(dtStart, "yyyy-mm-dd") & "'} and {d '" & Format(dtEnd, "yyyy-mm-dd") & "'}"
    rs.Open sql, conn, adOpenStatic, adLockOptimistic
  
    While Not rs.EOF
       employeeID = rs.Fields("EntityRefListID")
       Debug.Print employeeID
       rs.MoveNext
    Wend 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-07 09:46:41

We currently have some outstanding issues with QODBC v7.00.00.199 and ADO. If you swap back to QODBC v6.00.00.176, your code should work without errors.

You can swap revs, simply rename fqqb32.dll to fqqb32.199, download and run the QODBC v6.00.00.176 installer. I do it all the time!

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-20 11:35:28
We have now corrected the issues with PassThrough SQL and ADO keyset cursors and increased speed for ADO at the same time. See: QODBC v7.0.0.204 Released for more. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to