Quote:I have tried without any success to post a value from a database "Customer Payments" to a database "Jobs".
I am using the MASS UPDATE capability of Sesame but this is not working.
my MASS UPDATE program statement is;
xpost("@Fn",Inv_No,"Jobs!Job_Inv_No", Amount,"Payments","ADD")
The double quotes around the @fn function force SBasic to interpret that literally, instead of running the functions. So, SBasic is looking for a file actually named "@fn". Try:
xpost(@fn, Inv_No, "Jobs!Job_Inv_No", Amount, "Payments", "ADD")
if(@error)
{
writeln("There is an error in the XPost")
}
Quote:Does Sesame allow the use of XPost in Mass Updates?
Has anyone been here before?
DTB
Sesame does allow XPost in Mass Update, as long as you are not in the preview mode of the Designer. I would recommend however, that you mass update the the "Jobs" database and pull from the "Customer Payments" database instead (probably using one of the XLookup functions). A data pull is always preferrred over a push. A pull allows for more data checking and error recovery if needed.