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 : MS Access Connection FailedSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC Frequently Asked Questions

 New Topic 
 
 Post Reply 
[1]  
 MS Access Connection Failed 
 Author   Message 
  PilgrimTech 
  
 Group: Members 
 Posts: 1 
 Joined: 2007-04-20 
 Profile
 Posted : 2008-01-23 10:11:10

I have an MS Access DBMS file linked to a Quickbooks company file through the QODBC driver. We made a second similar company file in Quickbooks that I would like my MS Access file to link to in a similar way. When I open the second Quickbooks file and click on the existing link to the QB Customer table I get "QODBC – connection to '{QODBC Driver for Quickbooks}-QODBC' failed.".  When I bring up the QODBC configuration dialog and test the connection, I get:

  "2008-01-22 14:27:26 QODBC Ver:  7.00.00.214 *********************************************************************************************************************
IsAService: False
Begin Session Failed. S0000 00000 [QODBC] QB Begin Session Failed. Error = 80040418, This application has not accessed this QuickBooks company data file before. The QuickBooks administrator must grant an application permission to access a QuickBooks
company data file for the first time.
Begin Session errors can be caused when running ASP or other system service and not setting the "Advanced" button option of either "Use DCOM Servers" or "Remote Connector"

in the log file. So, please tell me how to grant permission for the second file or what I have to do to link up the second file and if I only have to do that once or if I have to keep granting permissions if using QODBC (last year's version) to connect to more than one QB file.

Thanks,

Bryson

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-01-23 11:18:49

The How do I connect to QuickBooks for the first time? procedure must be done for each new company file. QuickBooks can only have one company file open at the one time, so you can't link to more than one company file at once in MS Access. You need to either create a different .mdb for each company file or change your "ODBC Connect Str" properties in your pass through queries to call QODBC like this:

ODBC;DSN=QuickBooks Data;SERVER=QODBC

This will allow the query to work with whatever company file is open.

See: How do I create a Pass-Through Report using Microsoft Access 2003? for more.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to