SqlServer这种多条语句合并为一个即可,使用分号隔开
Dim cmd As new SQLCommandcmd.C
cmd.CommandText = "UPDATE {产品用板明细} SET 审核 = 'Y' WHERE 产品ID = '" & e.Form.Controls("Txt产品ID").text & "' and 审核 is null;UPDATE {产品用板明细} SET 日期 = '" & Functions.Execute("返回服务器日期") & "' WHERE 产品ID = '" & e.Form.Controls("Txt产品ID").text & "' and 日期 is null"
cmd.ExecuteNonQuery()