<div>Ruslan,</div>
<div> </div>
<div>Thanks....stupid mistake on my part.  Your example provided works as expected.</div>
<div> </div>
<div>Thanks for your help!</div>
<div>Warren<br><br></div>
<div class="gmail_quote">On Sun, Nov 21, 2010 at 2:33 AM, Ruslan Zasukhin <span dir="ltr">&lt;<a href="mailto:ruslan_zasukhin@valentina-db.com">ruslan_zasukhin@valentina-db.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">On 11/20/10 11:57 PM, &quot;Warren Kuhl&quot; &lt;<a href="mailto:warrenkuhl@gmail.com">warrenkuhl@gmail.com</a>&gt; wrote:<br>
<br>Hi Warren,<br><br>You write not correct here.<br><br>If you want to use SQL command<br>           &quot; Delete FROM Favorites where KeywordF = xxx &quot;<br><br>Then you should use<br>       VDatabase_SqlExecute( dbRef, commandStr )<br>

<div class="im"><br><br><br><br><br>&gt; I am trying to delete a record and am getting the following &quot;Wrong ref for<br>&gt; tblRef&#39; in my log.  What is this telling me as the same table works as a<br>&gt; select a few lines down in the log.<br>
&gt;  <br>&gt; Here is my delete statement:<br>&gt;  <br>&gt; put Vtable_DeleteRecord(fDatabase,&quot;Delete FROM Favorites where KeywordF = &#39;&quot; &amp;<br>&gt; tLine &amp; &quot;&#39;&quot;)<br>&gt; get vDatabase_Flush(fDatabase)<br>
&gt;<br>&gt; My log....<br>&gt;<br>&gt; VTable_DeleteRecord...<br>&gt;  PARAM: tblRef = &quot;53415400&quot;<br>&gt; ERROR: Wrong ref for &quot;tblRef&quot;<br>&gt; return None<br><br></div>Right, because<br><br>Vtable_DeleteRecord()  requires as first parameter<br>
   not dbRef but tblRef.<br>
<div class="im"><br><br><br>&gt; VDatabase_Flush...<br>&gt;  PARAM: dbRef = &quot;53415400&quot;<br>&gt; return<br>&gt;<br>&gt; VDatabase_SqlSelect...<br>&gt;  PARAM: dbRef = &quot;53415400&quot;<br>&gt;  PARAM: inStrQuery = &quot;SELECT Termf FROM Favorites where KeywordF = &#39;test2j&#39;<br>
&gt; Order by TermF&quot;<br>&gt; return res = 53415512<br><br></div>--<br>Best regards,<br><br>Ruslan Zasukhin<br>VP Engineering and New Technology<br>Paradigma Software, Inc<br><br>Valentina - Joining Worlds of Information<br>
<a href="http://www.paradigmasoft.com/" target="_blank">http://www.paradigmasoft.com</a><br><br>[I feel the need: the need for speed]<br><br><br>_______________________________________________<br>Valentina mailing list<br>
<a href="mailto:Valentina@lists.macserve.net">Valentina@lists.macserve.net</a><br><a href="http://lists.macserve.net/mailman/listinfo/valentina" target="_blank">http://lists.macserve.net/mailman/listinfo/valentina</a><br>
</blockquote></div><br>