No value given for one or more required parameters.
this message i get when i try to execute this code in c#:
public partial class FormAddCustomer : Form
{
string con = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "\\Tailoers.mdb;Persist Security Info=False";
public FormAddCustomer()
{
InitializeComponent();
}
private void buttonsave_Click(object sender, EventArgs e)
{
OleDbConnection cnn = new OleDbConnection(con);
OleDbCommand command = new OleDbCommand("Insert into Customers (CustomerName,CustomerTelephone) Values (" + textBoxname.Text + ",'" + textBoxtele.Text + "')", cnn);
cnn.Open();
command.CommandType = CommandType.Text;
command.ExecuteNonQuery();
cnn.Close();
}
}
any one help please