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 : Using Microsoft Access and the QODBC Remote Connector?Search Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Using Microsoft Access and the QODBC Remote Connector? 
 Author   Message 
  Michael 
  
 Group: Members 
 Posts: 3 
 Joined: 2006-04-13 
 Profile
 Posted : 2006-04-13 03:20:30

I have several users of an access database that is linked to quickbooks using the Qodbc driver.  Some users have quickbooks installed and others do not.  Those that do not have quickbooks installed, are connecting using the remote connecter.  All other users are using the generic connection method.  The issue I am having is whenever a user opens the database and tries read the data they get an 'ODBC - Call failed' error. 

Relinking the tables seems to fix the issue but this is to cumbersome to use.  I have attempted to use Visual Basic to refresh the connections, but receive the following error when attempting to open the connection:

'Runtime error 3000' Reserved error (-1038) there is no message for this error.'

My connection string is as follows:

strConnect = "ODBC;DSN=QuickBooks_NAData;DFQ=N:\QUICKBOOKS\baselineNov17th.QBW;" & _
    "OpenMode=M;SERVER=QODBC;IBizRemoteConnect=Yes;" & _
    "IBizRemoteURL=http://localhost:2080;IBizRemotePWD=reporting;" & _
    "IBizRemoteConnTimeOut=1000;"

Set dbsODBC = OpenDatabase("", False, False, strConnect)

 

Please Help

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-04-13 08:13:02
Try using a "LinkODBC" sub procedure module for your connections. See: When I use Linked tables in MS Access the ODBC link locks-up?  

  Top 
  Michael 
  
 Group: Members 
 Posts: 3 
 Joined: 2006-04-13 
 Profile
 Posted : 2006-04-14 00:04:22
I am using the LinkODBC sub procedure.  The error I am receiving is when the module is executing when attempting to open the connection {Set dbsODBC = OpenDatabase("", False, False, strConnect)} 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-04-15 15:53:33

Oh, didn't see the Set dbsODBC line under the connection string, but I believe the sub-procedure should look like this:-

========================================================

Option Compare Database
Option Explicit

Public Sub LinkODBC()
Dim tdfAccess As TableDef
Dim dbsODBC As Database
Dim strConnect As String

strConnect = "ODBC;DSN=QuickBooks_NAData;" + _
    "DFQ=N:\QUICKBOOKS\baselineNov17th.QBW;" + _
    "OpenMode=M;SERVER=QODBC;IBizRemoteConnect=Yes;" + _
    "IBizRemoteURL=http://localhost:2080;IBizRemotePWD=reporting;" + _
    "IBizRemoteConnTimeOut=1000;"

Set dbsODBC = OpenDatabase("", False, False, strConnect)

Set tdfAccess = CurrentDb.CreateTableDef("InvoiceLine", dbAttachSavePWD)
tdfAccess.Connect = dbsODBC.Connect
tdfAccess.SourceTableName = dbsODBC.TableDefs("InvoiceLine").Name
CurrentDb.TableDefs.Append tdfAccess

dbsODBC.Close

Set dbsODBC = Nothing
Set tdfAccess = Nothing
End Sub

========================================================

 

  Top 
  Michael 
  
 Group: Members 
 Posts: 3 
 Joined: 2006-04-13 
 Profile
 Posted : 2006-04-18 10:43:16
The sub procedure is exactly like what you suggest.  With the exception of the slight differences in carriage returns in the strConnect definition our modules are identicle (access treats "&" and "+" identically for text).  When I use the debugger my strConnect value reads as follows:
"ODBC;DSN=QuickBooks_NAData;DFQ=N:\QUICKBOOKS\baselineNov17th.QBW;OpenMode=M;SERVER=QODBC;IBizRemoteConnect=Yes;
IBizRemoteURL=http://localhost:2080;IBizRemotePWD=reporting;IBizRemoteConnTimeOut=1000;"

There must be some other issue happening.

Thanks
 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-04-18 10:57:54
Most likely the DFC value is wrong, I think it has to be the path as it is on the Host (not the remote path). 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to