<?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 Aug 2015 02:51:34 Z</lastBuildDate><pubDate>11 Aug 2015 19:39:28 Z</pubDate><description>I have a query which works when previewed, returning 125 records out of 13372 but when I run it in my program:&#13;
HExecuteQuery(QRY_BurialPeriod)&#13;
nCount = HNbRec(QRY_BurialPeriod) &#13;
returns 13372&#13;
The Query is:&#13;
SELECT&#13;
	RTRIM(burial.Last_Name) +', ' + RTRIM(burial.First_Name) AS cFullName,	&#13;
	burial.Sex AS Sex,&#13;
	burial.Burial_Type AS Burial_Type,&#13;
	Burial_Date AS Burial_Date,	&#13;
	ROUND(MONTHS_BETWEEN(burial.Death_Date, burial.Birth_Date)/12,0) AS Age&#13;
FROM &#13;
	burial&#13;
WHERE &#13;
	burial.Burial_Date BETWEEN {gdReport_Start} AND {gdReport_End}&#13;
ORDER BY &#13;
	cFullName ASC</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53493-query-works-preview-but-not-program/read.awp</link><title>Query works in preview but not in program</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>gallen.dbmc</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53493-query-works-preview-but-not-program-53507/read.awp</comments><pubDate>12 Aug 2015 02:51:34 Z</pubDate><description>I guess it is a mistake made by a beginner!&#13;
Changing &#13;
HExecuteQuery(QRY_BurialPeriod) to&#13;
HExecuteQuery(QRY_BurialPeriod,hWith…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53493-query-works-preview-but-not-program-53507/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53493-query-works-preview-but-not-program-53507/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53493-query-works-preview-but-not-program/read.awp">Query works in preview but not in program</source><title>Re: Query works in preview but not in program</title></item></channel></rss>
