Hi all!
Em run câu lệnh này trong access sao lại bị báo lỗi "data type mismatch in criteria expression". Em tìm mãi nguyên nhân mà ko biết tại sao. Nhờ mọi người chỉ giúp nhé.
DoCmd.RunSQL "Update tbl_Order Set [tbl_Order].De = 'str_De' WHERE ((tbl_Order.OrderID) = 'str_OrderID')"
với: Trường OrderID là autonumber, biến str_OrderID thuộc kiểu integer
Em run câu lệnh này trong access sao lại bị báo lỗi "data type mismatch in criteria expression". Em tìm mãi nguyên nhân mà ko biết tại sao. Nhờ mọi người chỉ giúp nhé.
DoCmd.RunSQL "Update tbl_Order Set [tbl_Order].De = 'str_De' WHERE ((tbl_Order.OrderID) = 'str_OrderID')"
với: Trường OrderID là autonumber, biến str_OrderID thuộc kiểu integer