Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text fields in Maint form not updating table
Message
From
23/06/2006 08:36:53
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Text fields in Maint form not updating table
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01131094
Message ID:
01131094
Views:
55
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.
Reply
Map
View

Click here to load this message in the networking platform