comm.CommandText="insert into......values(?)";comm.Paramaters.AddWithValue("?",DateTime.Now);comm.CommandType=CommandType.Text;commExecuteNonQuery();conn.Close();
access的日期字段两边不是加单引号,而是#号。