I want to set the validation rule in the table products, field stock, by code.The code i have prepared seems not to be right.
The part of code, which seems false to me is the following:
‘ set additional field properties
Set fld = tdf.Fields(“stock”)
Set prp = fld.CreateProperty(“Validation rule > 0”])
fld.Properties.Append prp
To my regret i cannot do it properly.What is the exact wording for the validation rule?