<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FindFirst Question in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342318#M82255</link>
    <description>dim test as interger&lt;BR /&gt;
if rstInvUsed.FindFirst ("Size = '" &amp;amp; cboSize.Text &amp;amp; "'") = "" then&lt;BR /&gt;
test = 0&lt;BR /&gt;
end if&lt;BR /&gt;
&lt;BR /&gt;
should work&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Adam Thomas &lt;ATHOMAS&gt; wrote in article&lt;BR /&gt;
&lt;ADDB5AB8B3074F174C5E05487ECB013B&gt;...&lt;BR /&gt;
&amp;gt; I am using th following code:&lt;BR /&gt;
&amp;gt;     rstInvUsed.FindFirst ("Size = '" &amp;amp; cboSize.Text &amp;amp; "'")&lt;BR /&gt;
&amp;gt; in VB 6.0 to find a specific record in a recordset. This works fine&lt;BR /&gt;
unless&lt;BR /&gt;
&amp;gt; that record is not present. I want to return a value of zero if the&lt;BR /&gt;
record I&lt;BR /&gt;
&amp;gt; wish to find is not there. How do I do it???&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; TIA,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; --A.T.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/ADDB5AB8B3074F174C5E05487ECB013B&gt;&lt;/ATHOMAS&gt;</description>
    <pubDate>Wed, 01 Aug 2001 04:59:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-08-01T04:59:27Z</dc:date>
    <item>
      <title>FindFirst Question</title>
      <link>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342317#M82254</link>
      <description>I am using th following code:&lt;BR /&gt;
    rstInvUsed.FindFirst ("Size = '" &amp;amp; cboSize.Text &amp;amp; "'")&lt;BR /&gt;
in VB 6.0 to find a specific record in a recordset. This works fine unless&lt;BR /&gt;
that record is not present. I want to return a value of zero if the record I&lt;BR /&gt;
wish to find is not there. How do I do it???&lt;BR /&gt;
&lt;BR /&gt;
TIA,&lt;BR /&gt;
&lt;BR /&gt;
--A.T.</description>
      <pubDate>Wed, 01 Aug 2001 04:59:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342317#M82254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-01T04:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: FindFirst Question</title>
      <link>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342318#M82255</link>
      <description>dim test as interger&lt;BR /&gt;
if rstInvUsed.FindFirst ("Size = '" &amp;amp; cboSize.Text &amp;amp; "'") = "" then&lt;BR /&gt;
test = 0&lt;BR /&gt;
end if&lt;BR /&gt;
&lt;BR /&gt;
should work&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Adam Thomas &lt;ATHOMAS&gt; wrote in article&lt;BR /&gt;
&lt;ADDB5AB8B3074F174C5E05487ECB013B&gt;...&lt;BR /&gt;
&amp;gt; I am using th following code:&lt;BR /&gt;
&amp;gt;     rstInvUsed.FindFirst ("Size = '" &amp;amp; cboSize.Text &amp;amp; "'")&lt;BR /&gt;
&amp;gt; in VB 6.0 to find a specific record in a recordset. This works fine&lt;BR /&gt;
unless&lt;BR /&gt;
&amp;gt; that record is not present. I want to return a value of zero if the&lt;BR /&gt;
record I&lt;BR /&gt;
&amp;gt; wish to find is not there. How do I do it???&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; TIA,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; --A.T.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/ADDB5AB8B3074F174C5E05487ECB013B&gt;&lt;/ATHOMAS&gt;</description>
      <pubDate>Wed, 01 Aug 2001 04:59:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342318#M82255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-01T04:59:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342319#M82256</link>
      <description>That gives me a "Complie error: Expected function or variable" message.&lt;BR /&gt;
&lt;BR /&gt;
"Jaime" &lt;JFILSON&gt; wrote in message&lt;BR /&gt;
news:01c11a8a$08e61530$2c6464c0@pfieng04...&lt;BR /&gt;
&amp;gt; dim test as interger&lt;BR /&gt;
&amp;gt; if rstInvUsed.FindFirst ("Size = '" &amp;amp; cboSize.Text &amp;amp; "'") = "" then&lt;BR /&gt;
&amp;gt; test = 0&lt;BR /&gt;
&amp;gt; end if&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; should work&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Adam Thomas &lt;ATHOMAS&gt; wrote in article&lt;BR /&gt;
&amp;gt; &lt;ADDB5AB8B3074F174C5E05487ECB013B&gt;...&lt;BR /&gt;
&amp;gt; &amp;gt; I am using th following code:&lt;BR /&gt;
&amp;gt; &amp;gt;     rstInvUsed.FindFirst ("Size = '" &amp;amp; cboSize.Text &amp;amp; "'")&lt;BR /&gt;
&amp;gt; &amp;gt; in VB 6.0 to find a specific record in a recordset. This works fine&lt;BR /&gt;
&amp;gt; unless&lt;BR /&gt;
&amp;gt; &amp;gt; that record is not present. I want to return a value of zero if the&lt;BR /&gt;
&amp;gt; record I&lt;BR /&gt;
&amp;gt; &amp;gt; wish to find is not there. How do I do it???&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; TIA,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --A.T.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;/ADDB5AB8B3074F174C5E05487ECB013B&gt;&lt;/ATHOMAS&gt;&lt;/JFILSON&gt;</description>
      <pubDate>Wed, 01 Aug 2001 05:31:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342319#M82256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-01T05:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: FindFirst Question</title>
      <link>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342320#M82257</link>
      <description>You could test if a record was found using the  .NoMatch property and return&lt;BR /&gt;
the appropriate value.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Adam Thomas &lt;ATHOMAS&gt; wrote in message&lt;BR /&gt;
news:ADDB5AB8B3074F174C5E05487ECB013B@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I am using th following code:&lt;BR /&gt;
&amp;gt;     rstInvUsed.FindFirst ("Size = '" &amp;amp; cboSize.Text &amp;amp; "'")&lt;BR /&gt;
&amp;gt; in VB 6.0 to find a specific record in a recordset. This works fine unless&lt;BR /&gt;
&amp;gt; that record is not present. I want to return a value of zero if the record&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; wish to find is not there. How do I do it???&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; TIA,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --A.T.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ATHOMAS&gt;</description>
      <pubDate>Wed, 01 Aug 2001 05:31:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342320#M82257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-01T05:31:44Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342321#M82258</link>
      <description>Thanks!&lt;BR /&gt;
&lt;BR /&gt;
"Marty" &lt;MARTY.ASKEW&gt; wrote in message&lt;BR /&gt;
news:6C4BFBCA26FEDE13ED365A6C0EEA7B0F@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; You could test if a record was found using the  .NoMatch property and&lt;BR /&gt;
return&lt;BR /&gt;
&amp;gt; the appropriate value.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Adam Thomas &lt;ATHOMAS&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:ADDB5AB8B3074F174C5E05487ECB013B@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I am using th following code:&lt;BR /&gt;
&amp;gt; &amp;gt;     rstInvUsed.FindFirst ("Size = '" &amp;amp; cboSize.Text &amp;amp; "'")&lt;BR /&gt;
&amp;gt; &amp;gt; in VB 6.0 to find a specific record in a recordset. This works fine&lt;BR /&gt;
unless&lt;BR /&gt;
&amp;gt; &amp;gt; that record is not present. I want to return a value of zero if the&lt;BR /&gt;
record&lt;BR /&gt;
&amp;gt; I&lt;BR /&gt;
&amp;gt; &amp;gt; wish to find is not there. How do I do it???&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; TIA,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --A.T.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ATHOMAS&gt;&lt;/MARTY.ASKEW&gt;</description>
      <pubDate>Wed, 01 Aug 2001 06:59:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/findfirst-question/m-p/342321#M82258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-01T06:59:50Z</dc:date>
    </item>
  </channel>
</rss>

