The SQL for creating Access table shows error:
string sql = "CREATE TABLE [" + textBox1.Text + "]([S.NO] INTEGER PRIMARY KEY AUTOINCREMENT, [Entry Date] DATETIME)";
OleDbCommand cmd = new OleDbCommand(sql, conn);
cmd.ExecuteNonQuery();
Access considers INTEGER and AUTOINCREMENT to be two different data types. Don't declare your field as both.
Also Access complained when I requested S.NO as a field name. In order to get the statement to work I substituted an underscore for the dot:
CREATE TABLE [tblHarshan01]([S_NO] AUTOINCREMENT PRIMARY KEY, [Entry Date] DATETIME)
C#.