hi all,
this is probably a stupid question, or im missing something.
I have a customer info form, bound. I load with the following:
--------------------------
FillCombos() 'fills combo boxes
Me.DsCustomerDetail1.Customer.Clear()
Me.BindingContext(Me.DsCustomerDetail1.Customer).AddNew()
---------------------------
then, when a user fills in the form, and hits the SAVE button on the
toolbar, i do this:
----------------------------
Me.BindingContext(Me.DsCustomerDetail1.Customer).EndCurrentEdit()
If Me.DsCustomerDetail1.HasChanges Then
Me.daCustomer.Update(Me.DsCustomerDetail1.Customer)
bSaved = True
Me.DsCustomerDetail1.AcceptChanges()
Exit Sub
End If
-----------------------------
when it does the endcurrentedit, it clears out the text boxes, and doesn't
save anything.
what am i doing wrong?
thanks in advance!
george
RobinS - 30 Aug 2008 08:14 GMT
What version of .Net are you using and what version of VS?
RobinS.
> hi all,
>
[quoted text clipped - 27 lines]
> thanks in advance!
> george
George Hardy - 09 Sep 2008 19:15 GMT
2008 .net framework 2.0
> What version of .Net are you using and what version of VS?
>
[quoted text clipped - 32 lines]
>> thanks in advance!
>> george