Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically creating VFPOLEDB connection from VFP
Message
From
25/09/2011 02:45:55
 
 
To
24/09/2011 21:10:43
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
01524628
Message ID:
01524633
Views:
76
>Hi guys,
>
> I am having a table with a primary key as AUTO INCREMENT.
>
>When i try to open this table in Crystal Reports using ODBC i get the error
>
<b> ODBC error: [Microsoft][ODBC Visual Foxpro Driver] Not a table </b>
>
>Going back to the table in foxpro, if i change the Integer (Auto Inc) to INTEGER, i am able to access this table in CR using ODBC. So it seems that INTEGER AUTO INC is causing problem with ODBC drivers.
>
>
>Then i setup a "VFPOLEDB for Visual Foxpro" connection and i am able to access the table in Crystal Reports without any problem.
>
>
<h2><b>MY PROBLEM</b></h2>
>
>From my VFP program i was creating ODBC connection programatically but how can i create a VFPOLEDB connection progamatically from VFP so that Crystal Reports can access the table.
>
>I have approx 50 reports created in CR 8.5 and all the reports were using ODBC connection so how can all these reports be changed to start using VFPOLEDB connection?
>
>Any help/suggestions/ will be highly appreciated.

I believe the VFP ODBC driver only supports DBCs up to VFP6. None of the more recent features.

For OLEDB connection: http://connectionstrings.com/visual-foxpro
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform