<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>3 Nov 2016 20:47:10 Z</lastBuildDate><pubDate>22 Oct 2016 20:04:07 Z</pubDate><description>I've been away from developing in WinDev20 for some time so maybe I've become 'stupid' but I can't figure this out.&#13;
I have a Query which, if I test in the Query editor, gives me the results I expect. It looks like this:&#13;
SELECT &#13;
	RBL_BRES.TOUR_DATE AS TOUR_DATE,	&#13;
	RBL_BRES.TOUR_TIME AS TOUR_TIME,	&#13;
	RBL_BRES.PASSENGERS AS PASSENGERS,	&#13;
	RBL_BRES.BOATID AS BOATID,	&#13;
	RBL_BRES.CANC_DATE AS CANC_DATE&#13;
FROM &#13;
	RBL_BRES&#13;
WHERE &#13;
	RBL_BRES.TOUR_DATE = {dpDate}&#13;
	AND	RBL_BRES.BOATID = {spBOAT_ID}&#13;
	AND	RBL_BRES.CANC_DATE &lt; '19000101'&#13;
ORDER BY &#13;
	TOUR_TIME ASC&#13;
&#13;
The results show 10 records with the first time at 10:00 and 55 passengers but in my program:&#13;
PROCEDURE Cap_Pass()&#13;
iPos is int&#13;
IF HExecuteQuery(QRY_Cap_Reservation)&#13;
	HReadFirst(QRY_Cap_Reservation)&#13;
	WHILE NOT HOut(QRY_Cap_Reservation) &#13;
		Info(QRY_Cap_Reservation.TOUR_TIME +" " +QRY_Cap_Reservation.PASSENGERS)&#13;
......&#13;
it shows the first time as  8:00 and 1 passenger&#13;
I am using the same values for dpDate and spBoat_ID that I used for testing the Query&#13;
What could possibly be going on?&#13;
&#13;
--&#13;
Garry</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result/read.awp</link><title>Strange Query result</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/60087-strange-query-result-60225/read.awp</comments><pubDate>3 Nov 2016 20:47:10 Z</pubDate><description>Thanks for trying Fabrice. I only had one other copy of RBL_BRes on my machine and I renamed it but the problem persists.&#13;
Could…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result-60225/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result-60225/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result/read.awp">Strange Query result</source><title>Re: Strange Query result</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result-60173/read.awp</comments><pubDate>30 Oct 2016 13:19:47 Z</pubDate><description>Hi Garry,&#13;
&#13;
it looks like you ahve two sets of files, and are not accessing the same &#13;
set in both cases...&#13;
&#13;
&#13;
&#13;
Best regards…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result-60173/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result-60173/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result/read.awp">Strange Query result</source><title>Re: Strange Query result</title></item><item><author>gallen.dbmc</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result-60170/read.awp</comments><pubDate>29 Oct 2016 20:13:20 Z</pubDate><description>Sorry to bring this up again but I have had no response and I still can't figure it out.&#13;
I displayed the results of the Query i…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result-60170/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result-60170/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60087-strange-query-result/read.awp">Strange Query result</source><title>Re: Strange Query result</title></item></channel></rss>
