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 determine which company is openSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 How do I determine which company is open 
 Author   Message 
  Thomas Engelhart 
  
 Group: Members 
 Posts: 3 
 Joined: 2007-03-13 
 Profile
 Posted : 2007-03-15 02:21:08

Is there a way I can determine which company file is open when I connect using QODBC?

I need to insure that the correct compy file is open before I continue processing.

 

Thanks

Tom

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-03-15 08:53:23

Just query the Company table like this:

SELECT CompanyName, LegalCompanyName FROM Company

You can also use a connection string to specify which company file to use, see: How do I build a connection string with all the available QODBC parameters? for further information.

 

  Top 
  Thomas Engelhart 
  
 Group: Members 
 Posts: 3 
 Joined: 2007-03-13 
 Profile
 Posted : 2007-03-15 09:22:59

Thanks

That is what I needed.

 

Tom

 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to