[QODBC-Desktop] QODBC and Microsoft Visual Basic and ADO
Posted by Juliet (QODBC Support) on 12 February 2010 02:11 AM
|
|
How to use ADO and Visual Basic with QODBCSetup QODBC to work with ADO Note: QODBC can be accessed from ADO. ADO can be used in Visual Basic (VB), Access, VBScript, ASP, C++, VB.NET, C#, and other languages that support COM components. OpenMode = F (Follow Company), M (Multi-user), S (Single-user). DeveloperCode = This is for users of the QODBC v5 OEM version only. It is required to connect to the OEM licensing model. The Code is given to you when you purchase a QODBC v5OEM licensing pack. ColumnNameLen = This is a number that specifies the maximum length a column name can be. Using this is required in some development environments. Its use will make the returned column names not match the normally defined schema. Example of simple DSN Standard syntax DFQ (./[path to .qbw file]) : . means the current company file is open in QuickBooks
Query Data VBS Example'*****************************************
Save your VBA file as QODBC Query Data.vbs, To execute the VBS file, Double Click on the file.
Visual Basic 6 ExampleNote: Requires project reference to Microsoft ActiveX Data Objects 2. x Library '*****************************************
Sp_report Query Data VBS ExampleNote: For QuickBooks reports, use sp_report like any other SELECT statement. For example, save the following example as sp_report.vbs to a file. '***************************************** Set oConnection = CreateObject("ADODB.Connection") Double-click on it using Windows Explorer, and you will get your Customer Balances:
Keywords: vbs adodb connection 64-bit vbs
| |
|
oConnection.Open sConnectString
the message is:
The Specified DSN contains a mismatch between the Driver and Application
Code 80004005
Any suggestions what I am doing wrong?
thanks very much
Refer : http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2439/0/qodbc-reports-architecture-mismatch-problem-when-connecting
You can't fetch QuickBooks data without QuickBooks is running either in background/foreground. QuickBooks needs to be in running mode to access data using QODBC.
Also, can you post sample code for updating QuickBooks from Access?
Please refer below mentioned article for sample VBA code, You can refer below link & can make changes in the code as per your requirement:
http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2571
Please refer below mentioned link for How to Import data to QuickBooks through CSV using QODBC:
http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2753
If you are still facing the issue, Please raise a support ticket to the QODBC Technical Support department from below mentioned link & provide requested information:
http://support.flexquarters.com/esupport/index.php?/Tickets/Submit
We may need the following information, Please attach below listed files when replying to the ticket.
1) Screenshot of QODBC Setup Screen -- > About
2) Screenshot of the issue you’re facing.
Share Entire Log Files as an attachment in text format from
3) QODBC Setup Screen -- > Messages -- > Review QODBC Messages
4) QODBC Setup Screen -- > Messages -- > Review SDK Messages
Refer: How to take screenshot: www.qodbc.com/links/screenshot.htm