this is probably a stupid question, or im missing something.
I have a customer info form, bound. I load with the following:
--------------------------
FillDatasets() '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
¤ hi all,
¤
I would recommend re-posting your question in a .NET group:
microsoft.public.dotnet.framework.adonet
microsoft.public.dotnet.languages.vb
microsoft.public.dotnet.languages.vb.data
Paul
~~~~
Microsoft MVP (Visual Basic)