D
Dave
Hello all,
I have an SQL Server express 2005 database and a VB .net 2003
Win form application that accesses the database, I have created 3
datatables and have bound multiple textboxes to one datatable and have two
comboboxes bound to the other two datatables (Used as lookup), In the
comboboxes selectedvaluechanged event I set a bound textbox to the
comboboxes selected value then I store the changed record via a stored
procedure but it doesn't work (the record is unchanged) and there is no
error produced. However if after selecting the required item in the combobox
and the selectedvaluechanged event has fired, the correct value is displayed
in the textbox and then if I click into the textbox (without making any
changes) before updating the record it works, the database reflects the
change. I use a begin edit before changing the record as well as a end edit
before calling the update.
Can anyone point out where I'm going wrong ? or point me in the
right direction ?
Many thanks
Dave.
I have an SQL Server express 2005 database and a VB .net 2003
Win form application that accesses the database, I have created 3
datatables and have bound multiple textboxes to one datatable and have two
comboboxes bound to the other two datatables (Used as lookup), In the
comboboxes selectedvaluechanged event I set a bound textbox to the
comboboxes selected value then I store the changed record via a stored
procedure but it doesn't work (the record is unchanged) and there is no
error produced. However if after selecting the required item in the combobox
and the selectedvaluechanged event has fired, the correct value is displayed
in the textbox and then if I click into the textbox (without making any
changes) before updating the record it works, the database reflects the
change. I use a begin edit before changing the record as well as a end edit
before calling the update.
Can anyone point out where I'm going wrong ? or point me in the
right direction ?
Many thanks
Dave.