vb.net 2010 - Issue with tableadapter.insert -
i new programming , trying learn vb.net through youtube tutorials. tried create separate forms "login" , "create new account". login seems work fine. however, create account becomes difficult me code it. main issue have "insert" code. created "createnewaccount" form , connected database it. write code under "btnsave" when people create new account saved database. keep getting issues. says "userspasswordstableadapter1.insert" underlines time , program wouldn't work. here codes. helpful.
imports system imports system.data imports system.data.oledb public class createnewaccount
private sub createnewaccount_load(sender object, e eventargs) handles mybase.load me.userspasswordstableadapter1.fill(me.userspasswordsdataset1.userspasswords) end sub private sub btnsavenewaccount_click(sender object, e eventargs) handles btnsavenewaccount.click loginpage.userspasswordstableadapter1.insert(me.textbox1.text, me.textbox2.text, me.textbox3.text) loginpage.userspasswordstableadapter1.fill(loginpage.userspasswordsdataset1.userspasswords) msgbox("your account has been saved successfully", msgboxstyle.information) textbox1.text = "" textbox2.text = "" textbox3.text = "" end sub private sub btnbacktologin_click(sender object, e eventargs) handles btnbacktologin.click me.hide() loginpage.show() end sub
end class
Comments
Post a Comment