<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>12 Jun 2017 23:58:00 Z</lastBuildDate><pubDate>12 Jun 2017 22:41:00 Z</pubDate><description>I am using HFSQL C/S files. I have a Payment file and a Receipt file. Payment is linked to Receipt by ReceiptID. How can I write a valid query that matches Payments with Receipts and sets Payment.Amount to the matching Receipt.Total?&#13;
&#13;
UPDATE Payment SET Payment.Amount = (SELECT Receipt.Total FROM Receipt WHERE Payment.ReceiptID = Receipt.ReceiptID) //ERROR : No analysis opened: Receipt file not described. UPDATE Payment SET Payment.Amount= Receipt.Total FROM Payment INNER JOIN Receipt ON Payment.ReceiptID = Receipt.ReceiptID //ERROR : Unexpected word: FROM. UPDATE Payment INNER JOIN Receipt ON Payment.ReceiptID = Receipt.ReceiptID SET Payment.Amount= Receipt.Total //ERROR: Unable to cast data to type of JOIN.AppliedAmount item. UPDATE Payment SET Payment.Amount = (SELECT Receipt.Total FROM Receipt WHERE Receipt.ReceiptID = Payment.ReceiptID) WHERE EXISTS (SELECT * FROM Receipt WHERE Receipt.ReceiptID = Payment.ReceiptID) //ERROR : No analysis opened: Receipt file not described. UPDATE Payment,Receipt SET Payment.Amount = Receipt.Total WHERE Payment.ReceiptID = Receipt.ReceiptID //ERROR: Unable to cast data to type of JOIN.AppliedAmount item.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61281-wd20-hfsql-update/read.awp</link><title>[WD20] HFSQL Update</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61281-wd20-hfsql-update-61285/read.awp</comments><pubDate>12 Jun 2017 23:58:00 Z</pubDate><description>Oops. Payment.Amount was set to text instead of currency. Now it works.&#13;
&#13;
Thanks kingdr.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61281-wd20-hfsql-update-61285/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61281-wd20-hfsql-update-61285/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61281-wd20-hfsql-update/read.awp">[WD20] HFSQL Update</source><title>Re: [WD20] HFSQL Update</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61281-wd20-hfsql-update-61284/read.awp</comments><pubDate>12 Jun 2017 23:15:00 Z</pubDate><description>You should do this as below:&#13;
&#13;
UPDATE Payment JOIN Receipt ON Payment.ReceiptID = Receipt.ReceiptID SET Payment.Amount= Receipt…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61281-wd20-hfsql-update-61284/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61281-wd20-hfsql-update-61284/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61281-wd20-hfsql-update/read.awp">[WD20] HFSQL Update</source><title>Re: [WD20] HFSQL Update</title></item></channel></rss>
