<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>13 Jun 2017 07:50:15 Z</lastBuildDate><pubDate>11 May 2010 08:22:58 Z</pubDate><description>Hi,&#13;
I have what seems to be a simple question, but can't seem to get my head around how the retrieval of data works for query datasets in WD - maybe it's too late for me to be thinking :confused:&#13;
I have a simple select query that returns a count:&#13;
SELECT COUNT(*) FROM PRODUCTS;&#13;
Then I use HExecuteQuery, but how do I retrieve the COUNT(*) value?&#13;
I'm pretty sure it's a HRead... of some kind, but what's the syntax?&#13;
Thanks in advance...</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query/read.awp</link><title>[WD12] How to access COUNT(*) from a query</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>sandra louis</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-61286/read.awp</comments><pubDate>13 Jun 2017 07:50:15 Z</pubDate><description>Queries are helpful way of extracting information from one or more tables based on a set of search condition given by you. This …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-61286/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-61286/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query/read.awp">[WD12] How to access COUNT(*) from a query</source><title>Re: [WD12] How to access COUNT(*) from a query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25599/read.awp</comments><pubDate>11 May 2010 11:52:37 Z</pubDate><description>Arie,&#13;
Thanks for the explaination... now I understand :spos:</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25599/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25599/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query/read.awp">[WD12] How to access COUNT(*) from a query</source><title>Re: [WD12] How to access COUNT(*) from a query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25597/read.awp</comments><pubDate>11 May 2010 11:03:07 Z</pubDate><description>Darren, how do you build your query?&#13;
If you are using the designer the "count(*)" gets an alias like count_1&#13;
"select count(*) …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25597/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25597/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query/read.awp">[WD12] How to access COUNT(*) from a query</source><title>Re: [WD12] How to access COUNT(*) from a query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25592/read.awp</comments><pubDate>11 May 2010 08:23:54 Z</pubDate><description>Hi Al,&#13;
Thanks for the reply...&#13;
Just tried it and the answer is "yes" it works!  :cheers:&#13;
[code]&#13;
HExecuteQuery(QRY_CountActiv…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25592/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25592/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query/read.awp">[WD12] How to access COUNT(*) from a query</source><title>Re: [WD12] How to access COUNT(*) from a query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25590/read.awp</comments><pubDate>11 May 2010 08:23:19 Z</pubDate><description>Hello Darren&#13;
I don't use queries but I use views and I can get the number of records in a view with HnbRec()  Can you use that …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25590/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query-25590/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25589-wd12-how-access-count-from-query/read.awp">[WD12] How to access COUNT(*) from a query</source><title>Re: [WD12] How to access COUNT(*) from a query</title></item></channel></rss>
