Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie - Problem Updating! - getting desperate!
Message
 
À
22/12/2003 12:22:49
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00861305
Message ID:
00861338
Vues:
15
I just had some success!
I think the app didn't fire the Update because it didn't think I changed anything. I just added the following line and that seems to have helped.
DsEmployees1.Tables(0).Rows(intCurrentRecord).Item("LastName") = Me.txtLastName2.Text
Will "parameter" statements for the update take care of all the fields?
Or Will I need to do a statement like the above for each field?

Also, I probably need to refresh my data because after I do the save, and the update fires, When I go back to the 1st record in my dataset it's showing that it's last name field has been changed...as well as the desired record.
What command should I issue to "refresh" my dataset?

Thanks for putting up with me!
--------------------------------------------
>Rick,
>
>Could it be, by any chance, that you've done a DSemployees1.AcceptChanges() before you call your Update? If so, then the .Update() method will think that there are no rows to update.
>
>~~Bonnie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform