TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Burak Seyhan
NA
321
29.9k
Access C# Data Insert Problem
Jun 17 2017 6:46 PM
string SqlString = "Insert Into tb_Users (UserName, Password,IsDeleted) Values (?,?,?)";
using (OleDbCommand cmd = new OleDbCommand(SqlString, myCon))
{
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddWithValue("UserName", "asd");
cmd.Parameters.AddWithValue("Password", "asdsadasdas");
cmd.Parameters.AddWithValue("IsDeleted", "fff");
myCon.Open();
cmd.ExecuteNonQuery();
}
Why this code doesn't work ? Always insert code return Syntax error in INSERT INTO statement. message. where is the problem please help me
Reply
Answers (
4
)
System.NullReferenceException' occurred in Online.dll
Online DB & Software Activation for Desktop App