Unable to connect using Visual FoxPro driver when quote is in path 
Author Message
 Unable to connect using Visual FoxPro driver when quote is in path

I have a program that is working ok.  I have a .dbf file that I am
trying to read using the following connection:

con.Open "driver=microsoft visual foxpro driver;sourcedb=" &
rstrDbLocation & ";sourcetype=dbf"

If there is a single quote in a folder in rstrDbLocation variable, the
program returns with the error

[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
ADO:Error #0:
   ADO Error   #-2147467259
   Description  [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed
   Source       Microsoft OLE DB Provider for ODBC Drivers
   SQLState     IM006Error #1:
   ADO Error   #-2147467259
   Description  [Microsoft][ODBC Visual FoxPro Driver]SourceType
   Source       Microsoft OLE DB Provider for ODBC Drivers
   SQLState     01S00
ADO:

Any ideas on how to get past this?  I have tried doubling up the
single quote and adding double quotes at the beginning and the end of
rstrDbLocation.



Sun, 23 Nov 2003 04:54:18 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Connect Informix database thru ODBC driver using Visual Basic

2. Unable to update records in Visual FoxPro Table with ADO-ODBC

3. [ODBC Visual FoxPro Driver]Invalid argument value

4. Need help creating Fox 2.5 table via MS Visual FoxPro ODBC driver

5. [ODBC Visual FoxPro Driver]SQL: Statement too long.

6. IRowsetIndex Support in Visual FoxPro OleDB driver

7. [ODBC Visual FoxPro Driver]Invalid argument value

8. ODBC driver error with Visual Foxpro Version 9

9. Unable to import SAS data into ACCESS97 or EXCEL 2000 using the SAS ODBC driver

10. using Visual FoxPro Databases in Visual Basic 6.0

11. Which SQL Driver am I using ?

12. Connecting VB to Visual Foxpro 5.0 Tables

 

 
Powered by phpBB® Forum Software