<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>29 Aug 2018 19:18:04 Z</lastBuildDate><pubDate>28 Dec 2009 22:15:09 Z</pubDate><description>I have a Windev project (My First) that I am trying to get the code behind a button to display info from a SQL query.  My project has an analysis attached to a Microsoft Access database.  There is a table named Dealers that I wish to open and loop through in the code.  Here is what I have so far:&#13;
&#13;
i is int = 0&#13;
LocationID is string&#13;
SQLText is string&#13;
&#13;
SQLText = "SELECT LocationID From Dealers"&#13;
IF NOT SQLExec(SQLText,"QRYTest") THEN Error("Error")&#13;
// Retrieve the query line by line&#13;
WHILE SQLFetch("QRYTest") = 0&#13;
	// There is still another line to read&#13;
	i++&#13;
	// Retrieve the data&#13;
	LocationID = SQLGetCol("QRYTest", 1)&#13;
	Info(LocationID)&#13;
END&#13;
SQLClose("QRYTest")&#13;
&#13;
&#13;
When I execute this code I get an error that says "No Current Connection" which seems to imply that I need to create a connection to the Analysis somewhere in the code.  The help examples seem to imply that as long as the the table is in the Analysis attached to the project, the connection is implied.&#13;
&#13;
Can anyone help me out with this?&#13;
&#13;
Thanks....</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/23394-sqlexec-error/read.awp</link><title>SQLExec error</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Boller</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/23394-sqlexec-error-66792/read.awp</comments><pubDate>29 Aug 2018 19:18:04 Z</pubDate><description>Hi,&#13;
&#13;
I opened a call at PCSOFT and I got this message too.&#13;
&#13;
--&#13;
Adriano José Boller&#13;
_______________________________________…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/23394-sqlexec-error-66792/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/23394-sqlexec-error-66792/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/23394-sqlexec-error/read.awp">SQLExec error</source><title>Re: SQLExec error</title></item></channel></rss>
