HI
I wrote below coding part,but its generate the exception.Below I mention the code and error
Error
Data type mismatch in criteria expression.
DataSet Serach_sumbitdata=new DataSet();
OleDbConnection conn7 = this.getconnection();
conn7.Open();
string str = "Select * from Customer where SubmitDate between '" + str1 + " 12:00:00 AM'" + " and '" + str2 + " 12:00:00 PM'";
OleDbCommand command = new OleDbCommand(str, conn7);
OleDbDataAdapter adapater = new OleDbDataAdapter(command);
adapater.Fill(Serach_sumbitdata);
Please help me
Thanks
Tank50