Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access a MDB with RDO
Message
 
 
À
27/08/2002 12:59:27
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00694110
Message ID:
00694692
Vues:
7
You can use ADO. Here's a sample code
LOCAL oCon AS ADODB.connection, ;
	oCmd AS ADODB.Command, ;
	oRs AS ADODB.RecordSet
oCon = CreateObject("ADODB.connection")
oCmd = CreateObject("ADODB.Command")
oRs = CreateObject("ADODB.RecordSet")
lcConStr = [Provider=Microsoft.Jet.OLEDB.4.0;] + ;
	[Data Source=E:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb;] + ;
	[Persist Security Info=False]

oCon.Open( lcConStr )			
oRs.ActiveConnection = oCon
oRs.Open("Select * FROM customers")
? oRs.Fields("CompanyName").Value
>I think that maybe i am wrong in the propety .connect, i don't know what to write in
>
>obj = createobject("RDS.Datacontrol")
>with obj
>.connect="DSN..." ??????
>
>endwith
>Can you help me ?
>Thanks
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform