方法一:
planNum = 事务主表_dt.sqlCompute("Count(*),"Convert(varchar(12), ActDate, 111) = '" & MyDateA & "' and (BusinessType = '6' or BusinessType = '1') and (Creater ='" & 查询姓名 & "' or Share like '%" & 查询姓名 & "%')")
方法二:
planNum = 事务主表_dt.Compute("Count(_Identify),"Convert(ActDate, 'System.String') = '" & MyDateA & "' and (BusinessType = '6' or BusinessType = '1') and (Creater ='" & 查询姓名 & "' or Share like '%" & 查询姓名 & "%')")
planNum = 事务主表_dt.Compute("Count(_Identify),"ActDate = #" & MyDateA & "# and (BusinessType = '6' or BusinessType = '1') and (Creater ='" & 查询姓名 & "' or Share like '%" & 查询姓名 & "%')")