Триггер со следующим синтаксисом не выполняется: For i = 1 To <Quantity> ExecuteSQL "INSERT INTO tblSupplies (SupplyNumber, SupplySubject, ProductDesc, SpecificationID) VALUES ("&i&", <Product>, <ProductDesc>, <SpecificationID>)" Next
Вне цикла выполнялся такой: INSERT INTO tblSupplies (SupplyNumber, SupplySubject, ProductDesc, SpecificationID) SELECT (Select Count(*) + 1 from tblSupplies Where SpecificationID = <SpecificationID> AND SupplySubject = <Product>), <Product>, <ProductDesc>, <SpecificationID>
В цикле он тоже не выполняется: For i = 1 To <Quantity> ExecuteSQL "INSERT INTO tblSupplies (SupplyNumber, SupplySubject, ProductDesc, SpecificationID) SELECT (Select Count(*) + 1 from tblSupplies Where SpecificationID = <SpecificationID> AND SupplySubject = <Product>), <Product>, <ProductDesc>, <SpecificationID>" Next
Скрин прилагаю.
Вложения: |
Trigger.png [ 46.1 КБ | Просмотров: 53334 ]
|
|