<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>7 Aug 2018 16:29:42 Z</lastBuildDate><pubDate>7 Aug 2018 09:36:20 Z</pubDate><description>I am using a memory table linked to a Query.&#13;
The result of this query can be 600.000 records.  Inside a "For all" loop I am filtering on this table.  The filtering item (sWaarde) is found in query QRY_Cadency_files.  The result of the filtering must be exported into an Excel file.&#13;
It seems that the table is not yet finalized when the export is started.  Resulting in unreadable XLSX or XML files.&#13;
Is there a way to have the program only export when the loading of the table is finished?&#13;
For now I have put a multitask, but this is not helping.  Small files are exported correctly.&#13;
&#13;
This is the code:&#13;
&#13;
[code:wl]&#13;
HExecuteQuery(QRY_Cadency_files)&#13;
FOR ALL QRY_Cadency_files  ON Cadency	&#13;
	sWaarde=QRY_Cadency_files.Cadency&#13;
	openfile=folder+"\"+maand+"_"+Process_cntry+"_"+companie+"_"+sWaarde+".xlsx"&#13;
	TableEnableFilter(Table_Ageing.COL_Cadency,filterEqual,sWaarde)&#13;
	IF TableCount(Table_Ageing)&lt;&gt;0 THEN	&#13;
		 IF TableCount(Table_Ageing)&gt; 80000 THEN&#13;
		 	 Multitask(1000)&#13;
			TableToExcel(Table_Ageing,Openfile,taColumnsTitles)&#13;
			Multitask(1000)&#13;
		ELSE&#13;
			TableToExcel(Table_Ageing,Openfile,taColumnsTitles)&#13;
			Multitask(100)&#13;
		 END&#13;
	END&#13;
	PROGBAR_export++&#13;
END&#13;
[/code]&#13;
&#13;
I am using WINDEV 22</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66513-windev-needs-wait-for-table-filled/read.awp</link><title>WINDEV needs to wait for table to be filled</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Peter</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66513-windev-needs-wait-for-table-filled-66522/read.awp</comments><pubDate>7 Aug 2018 16:29:42 Z</pubDate><description>Thanks Fabrice, I will try to create the Excel file directly from the query after filtering with a parameter. &#13;
&#13;
Kind regards, …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66513-windev-needs-wait-for-table-filled-66522/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66513-windev-needs-wait-for-table-filled-66522/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66513-windev-needs-wait-for-table-filled/read.awp">WINDEV needs to wait for table to be filled</source><title>Re: WINDEV needs to wait for table to be filled</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66513-windev-needs-wait-for-table-filled-66515/read.awp</comments><pubDate>7 Aug 2018 14:20:12 Z</pubDate><description>Hi,&#13;
&#13;
You could load the table by code instead of linking it to the query, or &#13;
you could export to xls directly from the query…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66513-windev-needs-wait-for-table-filled-66515/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66513-windev-needs-wait-for-table-filled-66515/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66513-windev-needs-wait-for-table-filled/read.awp">WINDEV needs to wait for table to be filled</source><title>Re: WINDEV needs to wait for table to be filled</title></item></channel></rss>
