Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

endcurrentedit clearing textboxes

1 view
Skip to first unread message

George Hardy

unread,
Aug 27, 2008, 9:54:40 AM8/27/08
to
hi all,

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


Paul Clement

unread,
Aug 28, 2008, 8:13:39 AM8/28/08
to
On Wed, 27 Aug 2008 08:54:40 -0500, "George Hardy" <gha...@nospam.com> wrote:

¤ 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)

0 new messages