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:
00297930
Vues:
30
Ed, that worked! Interesting thing is that the INSERT INTO I used dbl quotes and it worked... Nothing like a double standard. :) Thank you very much.


>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
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform