Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error trying to save changed web data
Message
De
07/04/2004 16:21:18
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00893053
Message ID:
00893081
Vues:
18
Hello Richard,

Unless I'm missing something else here (or my VB.NET syntax is rustier than I remember <g>), I think you want to change your UPDATE statement to:
oledbDA.UpdateCommand.CommandText = _
"UPDATE Contacts SET Company = '" & _
MyCompany & "' WHERE Unique_ID = " & _
MyContacts_Unique_ID.ToString()
Hope that makes sense,
---J

>I am still way too new at this...
>I have a Web Form and I'm trying to save my edits, trying to update the table my dataset is based on... An access table on my web directory.
>
>I am able to navigate the table but when I try to UPDATE the data it doesn't work.
>My TRY/CATCH is catching an exception.
>How do I find out what the exception is?
>
>I believe the line at fault is:
>
oledbDA.UpdateCommand.CommandText =
>"UPDATE Contacts SET Company= MyCompany WHERE Unique_ID = MyContacts_Unique_ID"
>
>

<snip>

>TIA,
>Rick
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform