Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text fields in Maint form not updating table
Message
De
23/06/2006 08:36:53
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Text fields in Maint form not updating table
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01131094
Message ID:
01131094
Vues:
56
On the Properies page of a Maintence form I have a four fields that have to be populated from a row from a dataset. I use the mmPicker to get the row, and once I select the row I put the field info into the text boxes.

Something like this (four of them):
Me.txtDeptNum.text = Me.oDept.DataRow.Item("DeptID")

A few other text boxes have already been filled in, and few have to be filled in after the data row is picked.

Then I save the data.

I noticed that the four text boxes that were populated like this didn't get saved in the SQL server row but the other popluated fields were.

However, if I did this:
Me.txtDeptNum.Focus()

for each text box, that is, enter the textbox and then leave it programmatically, the field data were saved. Somehow, just putting the field info into the text boxes, didn't update the row beneath it.

Any ideas on this behavior?

Thanks.
Répondre
Fil
Voir

Click here to load this message in the networking platform