Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update Statement
Message
 
 
À
23/10/2008 13:56:26
Bonhomme Sanon
Hercules Software
Pays-Bas
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
01356661
Message ID:
01356673
Vues:
17
>Hi everyone,
>
>I am a Visual Foxpro programmer trying to migrate to VB.NET I find it really nice way to program but I want to update a table with this statement :
>
>Dim sqlUpdate As String = " Update Customer " & " Set Name = ' " & Name & " ', Address = ' " & Address & "'," & " Where PhoneNo = '" & Key & "'"
>
>I received and UPDATE statement error
>
>Any help please
>
>B.Sanon

You have one extra comma at the end. Remove it.

Dim sqlUpdate As String = " Update Customer " & " Set Name = ' " & Name & " ', Address = ' " & Address & "'" & " Where PhoneNo = '" & Key & "'"
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform