Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please please help me to create this project i am new in vb.net
please give me source code for this project
vb.net and access i have a form - (Name,Address, Age ,Contact no) 12 textbox in 3 rows, (4 txtbox in each row) 4x3, which will be filled by the user and press the Submit button and all the 4 records will be inserted into Database. Is it possible? please assist me that how to do this.
thanks
Posted
Updated 10-Jul-14 18:21pm
v2

1 solution

you need to write a query for on your submit button.

if you want to save new record then you need to use inster query and if you need to update old record then you need to use update query. here are is the sample query you can use for reference

Insert Query = INSERT INTO USER_INFO (Name, Addres, Age,Contact_no) Values ('" & Textbox1.Text & "', '" & Textbox2.Text & "', '" & Textbox3.Text & "', '" & Textbox4.Text & "')

Update Query = UPDATE USER_INFO SET Name = ' " & Textbox1.Text & "', Address = ' " & Textbox2.Text & "', Age = ' " & Textbox3.Text & "', Contact_no = ' " & Textbox4.Text & "' WHERE (PrimaryKey = "pk")

download use this link for study

Insert, Update, Delete & Search Values in MS Access 2003 with VB.NET 2005[^]
 
Share this answer
 
Comments
cskumargrd 11-Jul-14 3:34am    
thanks for solution but
i have 12 textbox not 4textbox
example column- ( name,address,age, contact no)
insert into first row -txtbox1(for name),textbox2(for address), textbox3(for age),textbox4(for contact no)
insert into 2nd row -txtbox5(for name),textbox6(for address), textbox7(for age),textbox8(for contact no)
insert into 3rd row -txtbox9(for name),textbox10(for address), textbox11(for age),textbox12(for contact no)

one submit button for insert all textbox(1 to 12)
one submit button for update
thanks
cskumargrd 11-Jul-14 3:44am    
please give me your email address
i will send you image (jpeg )for project
cskumargrd 11-Jul-14 3:45am    
my email cskumargrd@gmail.com

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900