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 : Need Sample code to connect from Visual FoxProSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Need Sample code to connect from Visual FoxPro 
 Author   Message 
  Ahmad Ansari 
  
 Group: Members 
 Posts: 6 
 Joined: 2008-12-30 
 Profile
 Posted : 2009-01-05 05:07:23

Hi, I have the Quick Books Pro 2007 and I'm trying to access it from Visual FoxPro using a QODBC V7 connection.  Is there any sample code to help figure out how it will be done. Actually I am using

myHandle=SQLCONNECT()

to find out if any connection is available. But I do not see any available connection. Whereas when I used VB Demo I can browse QB tables. Thanks.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-01-05 11:31:29
See: Visual FoxPro accessing QuickBooks via QODBC  

  Top 
  Ahmad Ansari 
  
 Group: Members 
 Posts: 6 
 Joined: 2008-12-30 
 Profile
 Posted : 2009-01-05 13:14:34

Thanks for replying and guiding me to a sample code. In sample you are pointing to can make connection with QuickBooks and has problem with using SQL statement, whereas, I am unable to connect through Visual FoxPro and do not know why it is not connecting. I will appreciate if you can elaborate on what could be possible reasons of this problem.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-01-05 17:45:26
This isn't a Visual FoxPro support forum. Try doing:

* Connect to an ODBC data source
LOCAL nHnd
nHnd = SQLCONNECT ("QuickBooks Data")

* Retrieve data from the remote server and stores it in
* a local data cursor
nResult = SQLEXEC (nHnd, "select * from Customer", "QCUST")

* Close the connection
SQLDISCONNECT(nHnd)

and then look for examples of using MS SQL Server from Visual FoxPro on the FoxPro forums.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to