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 : Get name of currently open company fileSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Get name of currently open company file 
 Author   Message 
  JBonavita 
  
 Group: Members 
 Posts: 6 
 Joined: 2007-05-01 
 Profile
 Posted : 2007-06-21 06:08:50
Is there anyway to get the name of the currently open company file if the user is connecting to the current file? I would like to be able to store the file name so the user knows what data he/she is looking at. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-06-21 08:55:25

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 
 New Topic 
 
 Post Reply 
[1]  

Jump to