what is wrong with this insert into code?
vb 2008 say that there is a syntax error but i believe there is nothing..

cmd.CommandText = " INSERT INTO account1(username, password, lname, fname, mi) VALUES('" & Me.TextBox4.Text & "','" & Me.TextBox5.Text & "','" & Me.TextBox1.Text & "','" & Me.TextBox2.Text & "','" & Me.TextBox3.Text & "')"
cmd.ExecuteNonQuery()

Answers were Sorted based on User's Feedback



what is wrong with this insert into code? vb 2008 say that there is a syntax error but i believe th..

Answer / kk

" INSERT INTO account1(username, password, lname, fname, mi) VALUES('" + Me.TextBox4.Text + "','"+ Me.TextBox5.Text + "','" + Me.TextBox1.Text + "','" + Me.TextBox2.Text + "','" + Me.TextBox3.Text + "')"

Is This Answer Correct ?    2 Yes 1 No

what is wrong with this insert into code? vb 2008 say that there is a syntax error but i believe th..

Answer / priyanka singh

"INSERT INTO account1(username, password, lname,fname,mi) values( '" & Me.TextBox4.Text & "','"& Me.TextBox5.Text & "','" & Me.TextBox1.Text & "','" & Me.TextBox2.Text & "','" & Me.TextBox3.Text & "')"
cmd.ExecuteNonQuery()

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DotNet Errors Interview Questions

Actually,I created a web application in ASP.NET (Visual Studio 2008) in C#.If i want to run my web application in my local machine through IIS Server (Internet Information Server), what are all the steps i need to follow??? Please help me to run my web application in IIS Server

1 Answers  


how we change the .net 1.0 to .net 2.0?is that can we only paste the dll file?

1 Answers  


In .net how many error will occur?

0 Answers   Chevrolet, TCS,


What is Difference Between Server.Response and Response.Redirect in ASP.Net with C#?

1 Answers   Infosys, NIIT,


Weather I can use Dotnet framework 1.0 and 2.0 in same machine for Two application or not if "Yes" then how will configure in IIS for Framework 1.0 and 2.0 First Application will be working in .net Frame work 1.0 Send will be .net Frame work 2.0 How to Configure IIS for both Application using Virtual Directory I tried but when Confirte 1.0 then Second Application not working which is having 2.0 Framework but when Conf. 2.0 then Send Application works but First app. Not Work ...... How I Configure IIS for both Application Throwing ERR "The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. " After Hitting Refresh Button also not works...... ?

2 Answers   ISST,






Hi Everyone, I used VB.net until last year, this year I change my language to C#.net.But the easy one in VB.net such as "Set as Start page when running program", right click on solution explorer and do it. But in C#.net I can't find the way to do (Set as start page)until now. If anyone know it , please share your technical help. Thanks . (Horace Trever)

4 Answers  


not being able to create delivery from vl01n inspite of assigning sales order and delivery plz answer it immediately if any one knows

1 Answers  


How to use singal crystal report viewer to multiple reports?

1 Answers   Sparsh,


a cowboy rides to town on friday he stays there for three days and lives on friday.how was that possible

2 Answers   Synechron,


how to track links visited in google using iframes in dotnet

1 Answers  


what is wrong with this insert into code? vb 2008 say that there is a syntax error but i believe there is nothing.. cmd.CommandText = " INSERT INTO account1(username, password, lname, fname, mi) VALUES('" & Me.TextBox4.Text & "','" & Me.TextBox5.Text & "','" & Me.TextBox1.Text & "','" & Me.TextBox2.Text & "','" & Me.TextBox3.Text & "')" cmd.ExecuteNonQuery()

2 Answers  


sir, i have passed on S.B.I for clerk asstt. and i want to know that how many candidates were appointed from s.c cota?

1 Answers   State Bank Of India SBI,


Categories