DataTables("recordproducts").ReplaceFor("_Locked", True, "inputDate < #" & Date.Today & "#")
DataTables("TestProducts").ReplaceFor("_Locked", True, "inputDate < #" & Date.Today & "#")
DataTables("repeattestproducts").ReplaceFor("_Locked", True, "inputDate < #" & Date.Today & "#")
DataTables("delivergoods").ReplaceFor("_Locked", True, "inputDate < #" & Date.Today & "#")
DataTables("installproducts").ReplaceFor("_Locked", True, "inputDate < #" & Date.Today & "#")
DataTables("reportproducts").ReplaceFor("_Locked", True, "inputDate < #" & Date.Today & "#")
' DataTables("regform").ReplaceFor("_Locked", True, "inputDate < #" & Date.Today.AddDays(7) & "#")
DataTables("testreport").ReplaceFor("_Locked", False, "inputDate < #" & Date.Today & "#")
' StatusBar.Message1="当前登录:"
StatusBar.Message2 ="当前登录:" & User.Name & " " & Date.Today
上面是afteropen中的代码。有的同事的机器上抛“该字符串未被识别为有效的DateTime。有一个从索引9处开始的未知字。"异常。
请问怎么回事?先谢谢各位专家