我正在使用Access database
,并尝试Yes/No
使用 value获取 DataType 列的数据true
,但它不起作用,并给我以下错误
Data type mismatch in criteria expression.
下面是查询
cmd2 = new OleDbCommand("Select TOP " + PageSize + " DoctorID,FirstName&' '&LastName as [Doctor Name],ContactNo_1&' , '&ContactNo_2 as [Contact number],City,Email_ID from Doctor_Master WHERE Display='" + true.ToString() + "' ORDER BY DoctorID", con);
如何检查此值
WHERE Display='" + true.ToString() + "'