By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,527 Members | 904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,527 IT Pros & Developers. It's quick & easy.

Binding Manager (update record problem)

P: n/a
Binding Manager (update problem) by agnescheng
I use binding Manager to bind the textbox, I got a problem on update record.
E.g Me.txtUserId.Text = "PETER"
bm.current.item("userid") = Me.txtUserId.Text.
if ds.haschanges() then
....................
.....acceptchanges()
messagebox.show("Save is completed")
end if................
I found that Messagebox is showed, BUT the userid is still the old value.
WHY ?
Then I test that bm.current.item("userid") = "PETER" . <- IT CAN UPDATE THE
RECORD.
OR Dim strUserId as string = Me.txtUserId.text
bm.current.item("userid") = strUserId <-- It can update the record
also.

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Hi,

You never used begin and end edit

bm.current.beginedit
bm.current.item("userid") = Me.txtUserId.Text.
bm.current.endedit

http://msdn.microsoft.com/library/de...nedittopic.asp
Ken
------------------

"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:OS****************@TK2MSFTNGP12.phx.gbl...
Binding Manager (update problem) by agnescheng
I use binding Manager to bind the textbox, I got a problem on update record.
E.g Me.txtUserId.Text = "PETER"
bm.current.item("userid") = Me.txtUserId.Text.
if ds.haschanges() then
....................
.....acceptchanges()
messagebox.show("Save is completed")
end if................
I found that Messagebox is showed, BUT the userid is still the old value.
WHY ?
Then I test that bm.current.item("userid") = "PETER" . <- IT CAN UPDATE THE
RECORD.
OR Dim strUserId as string = Me.txtUserId.text
bm.current.item("userid") = strUserId <-- It can update the record
also.


Nov 21 '05 #2

P: n/a
i use Endcurrentedit already ??

"Ken Tucker [MVP]" <vb***@bellsouth.net> glsD:%2****************@TK2MSFTNGP14.phx .gbl...
Hi,

You never used begin and end edit

bm.current.beginedit
bm.current.item("userid") = Me.txtUserId.Text.
bm.current.endedit

http://msdn.microsoft.com/library/de...nedittopic.asp
Ken
------------------

"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:OS****************@TK2MSFTNGP12.phx.gbl...
Binding Manager (update problem) by agnescheng
I use binding Manager to bind the textbox, I got a problem on update
record.
E.g Me.txtUserId.Text = "PETER"
bm.current.item("userid") = Me.txtUserId.Text.
if ds.haschanges() then
....................
.....acceptchanges()
messagebox.show("Save is completed")
end if................
I found that Messagebox is showed, BUT the userid is still the old value.
WHY ?
Then I test that bm.current.item("userid") = "PETER" . <- IT CAN UPDATE
THE
RECORD.
OR Dim strUserId as string = Me.txtUserId.text
bm.current.item("userid") = strUserId <-- It can update the record
also.

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.