Advertisement

05.07.2008 at 03:25PM PDT, ID: 23384507
[x]
Attachment Details

Cannot Launch QuickBooks from QuickBooks SDK using MS Access VBA on Win  XP

Asked by anAppBuilder in Quickbooks Financial Software, Access Coding/Macros

Tags: Intuit, QuickBooks, SDK 7.0 and QuickBooks Premier Edition 2008, VBA from Access 2003, VBA

I am running on Win XP in MS Access 2003 VBA using QuickBooks SDK 7.0 and QuickBooks Premier Edition 2008.

OpenConnection2 does not open Quickbooks.  I execute the attached code.

QB does not open and BeginSession fails with error -2147220472  "Could not start QuickBooks. "

How do I diagnose and fix this problem?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Public Sub SetupQBSession()
 
    Dim sessionManager As QBSessionManager
    
    Set sessionManager = New QBSessionManager
    sessionManager.OpenConnection2 "", "Update from Test App", ctLocalQBDLaunchUI
    sessionManager.BeginSession "", omDontCare
  
    Exit Sub
End Sub
[+][-]05.09.2008 at 08:35AM PDT, ID: 21533940

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Quickbooks Financial Software, Access Coding/Macros
Tags: Intuit, QuickBooks, SDK 7.0 and QuickBooks Premier Edition 2008, VBA from Access 2003, VBA
Sign Up Now!
Solution Provided By: anAppBuilder
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628