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

copy selected row form table1 in form1 to table2 in form2

P: 3
I have data in table1 in form1. I want to copy data from selected row form table1 of Form1 to table2 of form2.
After being selected from data from selected row of table1 should be deleted.
I want to do by using with Tableadaptermanager (Databindingsource) .
I am using vb.net and MSAccess.

for deleting the row , I am using following code.

[Me.Validate()
Me.HPReportBindingSource.AllowRemove.ToString()
Me.TableAdapterManager.UpdateAll(Me.Histopathology _NewDataSet1)
MsgBox("Saved")]
Feb 7 '15 #1
Share this Question
Share on Google+
3 Replies


Ajay Bhalala
100+
P: 119
You can use DataReader object to copy and you can use delete query for deleting the row.

Hope this helpful for you.
Feb 11 '15 #2

P: 3
How can I use datareader? I am very new to vb.net.
Feb 11 '15 #3

Ajay Bhalala
100+
P: 119
You can visit the following links to know about the datareader...

http://www.codeproject.com/Articles/...taReader-class

http://www.tutorialspoint.com/vb.net...ase_access.pdf

The following link is best link for the vb.net
http://www.tutorialspoint.com/vb.net...ase_access.htm

Hope this helpful for you.
Feb 14 '15 #4

Post your reply

Sign in to post your reply or Sign up for a free account.