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 : How do I insert data into the Timetracking table?Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Sample Scripts Forum

 New Topic 
 
 Post Reply 
[1]  
 How do I insert data into the Timetracking table? 
 Author   Message 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-02-25 20:16:50

The following INSERT commands work on the QuickBooks 2005 or 2006 USA Edition Sample Rock Castle Construction Company file using QODBC v6.00.00.143 or later. Modify the actual data elements to match your system.

INSERT INTO "TimeTracking" ("EntityRefListID", "DurationMinutes","TxnDate","CustomerRefFullName","ItemServiceRefFullName",
"PayrollItemWageRefFullName") VALUES ( '370000-933272659', 480, {d'2007-12-18'}, 'Pretell Real Estate:75 Sunset Rd.', 'Removal','Salary')

This INSERT statement is for a Time/Enter Single Activity entry with a very long "Notes" column/field with QuickBooks 2006 :-

INSERT INTO "TimeTracking" ("EntityRefListID", "DurationMinutes","TxnDate","CustomerRefFullName","ItemServiceRefFullName",
"PayrollItemWageRefFullName","Notes") VALUES ( '370000-933272659', 480, {d'2007-12-19'}, 'Pretell Real Estate:75 Sunset Rd.', 'Removal','Salary','QODBC Driver for QuickBooks New Version 6.0 with Optimizer Technology. A fully functional ODBC driver for reading and writing QuickBooks 2006-2002 accounting data files by using standard SQL queries. The new version 6.0 adds Optimizer technology which is 10 times faster than using the QuickBooks SDK directly. Many applications have ODBC support built-in and can automatically use QuickBooks data with wizard ease once this driver has been installed. Applications such as Microsoft Access - Excel - Visual Basic or Crystal Reports will immediately have real-time data access to your critical accounting data.' )

Note: The "Notes" column has a limit of 4095 characters and the text cannot contain any , (commas).

The screen dump (below) shows the Time/Enter Single Activity entry with a very long "Notes" column/field as it appears QuickBooks 2006 after executing the SQL statement :-

 

  Top 
  gwmorris 
  
 Group: Members 
 Posts: 3 
 Joined: 2006-09-04 
 Profile
 Posted : 2006-09-05 16:07:51
I think I get everything except where I find out what to use for the EntityRefListID. The sample used  '370000-933272659', but I have no clue where this came from. Is this just a number that is made up, or is this a sequence ID that can be found somehow within my QB database? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-09-05 16:46:20

I used the "EntityRefListID" value of '370000-933272659' because it's the ListID for employee Dan T. Miller.  EntityRefListIDs can be found in the Entity table by doing:

SELECT ListID, Fullname, IsActive, Type FROM Entity

or, in my case to check that '370000-933272659' is a valid "EntityRefListID":

SELECT ListID, Fullname, IsActive, Type FROM Entity where ListID='370000-933272659'

 

  Top 
  KellyS 
  
 Group: Members 
 Posts: 9 
 Joined: 2007-09-08 
 Profile
 Posted : 2007-11-25 14:48:24
Why is it that when I try to insert data for the column "PayrollInfoEarningsPayrollItemWageRefListID" in the "TimeTracking" table I get this error:  "[QODBC] Column not found: PayrollInfoEarningsPayrollItemWageRefListID"

Your documentation tells me that this column does exist in the TimeTracking table: http://doc.qodbc.com/qodbc/20/tables/table_detail_usf0ab.html?details_id=76&tn_us=TRUE

The reason that I'm trying to insert data into the PayrollInfoEarningsPayrollItemWageRefListID column is because the method of inserting data into the TimeTracking table described in this post works great except the time inserted into the TimeTracking table will not appear on our invoices.

Please advise 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-11-26 09:28:42
The column is: PayrollItemWageRefListID or as used in this example: PayrollItemWageRefFullName 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to