Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DELETE FROM ~help
Message
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00297544
Message ID:
00297561
Vues:
23
I believe ADO uses single quotes Chr(39) instead of Chr(34). Give it a try.

>Does anyone see a major prob with the following: It doesn't like the commandtext line...
>
>
>Dim cn As New ADODB.Connection
>Dim cm As New ADODB.Command
>cn.Open "Driver=Microsoft Visual Foxpro Driver;UID=;SourceType=DBF;Deleted=YES;Null=NO;SourceDB=D:\"
>cm.ActiveConnection = cn
>cm.CommandType = adCmdUnknown
>cm.CommandText = "DELETE FROM C:\windows\system\Q12.dbf WHERE officeno = " & Chr(34) & cboOfficeNum.List(cboOfficeNum.ListIndex) & Chr(34)
>cm2.Execute
>
>My AdvaThanksnce
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform