Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error trying to save changed web data
Message
From
07/04/2004 16:21:18
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00893053
Message ID:
00893081
Views:
23
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
Previous
Reply
Map
View

Click here to load this message in the networking platform