Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection String TO VFP using VBA
Message
From
24/09/2003 19:40:38
 
 
To
All
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Connection String TO VFP using VBA
Miscellaneous
Thread ID:
00832040
Message ID:
00832040
Views:
56
Hi All,

I’m trying to get connected to VFP6 backend database using VBA. I used a Udl file to build the connection string and tested it over and over. Everything worked OK there. When I pasted the same connection string in my VBA code I get an error message saying

“Object Variable Or with Block Not Set..”

What does this mean ?? How do I correct it ?

My VBA Code..

*---------------------------------------------

Dim M2MConnect As ADODB.Connection

M2MConnect.Open "Driver={Microsoft Visual FoxPro Driver};" _
& "UID=;PWD=;SourceDB=R:\M2Mdata\DATA10\M2MDATA.DBC;" _
& "SourceType=DBC;Exclusive=No;"

*------------------------------------

Please HELP !!!

TIA

- Jeana -
Next
Reply
Map
View

Click here to load this message in the networking platform