<?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: 5 Combobox to Select By Attributes From Joined Table in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/5-combobox-to-select-by-attributes-from-joined/m-p/449569#M12217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I should simplify as well, in case my code isn't working for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 1. Try getting the text from the combo boxes into strings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 2. Use those strings as the conditions for the Selection query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm interested to see if it works, so I'll check back when you reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 18:02:24 GMT</pubDate>
    <dc:creator>deleted-user-VeC5jUIlNXtq</dc:creator>
    <dc:date>2013-05-08T18:02:24Z</dc:date>
    <item>
      <title>5 Combobox to Select By Attributes From Joined Table</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/5-combobox-to-select-by-attributes-from-joined/m-p/449567#M12215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Experts,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created 6 combobox including attributes of joined data. I want to make a query like "select by attribute" by using the comboboxes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used many of the sample codes but I got some errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me about finding solutions to write a codes for querying like select by attribute function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I have another userform to select by attributes by using one of the fields on same layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to use AND function to select attributes and in sixth combobox will choose null values or others to zoom after five combobox's choosen data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope i would be clear enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kindly Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 13:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/5-combobox-to-select-by-attributes-from-joined/m-p/449567#M12215</guid>
      <dc:creator>geomatic</dc:creator>
      <dc:date>2013-05-07T13:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: 5 Combobox to Select By Attributes From Joined Table</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/5-combobox-to-select-by-attributes-from-joined/m-p/449568#M12216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recently developed a little application for our department that allows them to type in textboxes which then goes to the attribute table and selects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here's a quick sample (bear with me, I picked apart the code and omitted a bunch of unnecessary lines): &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;' Create the query filter using user input.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pQueryFilter As IQueryFilter
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pFeatureSelection As IFeatureSelection

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pQueryFilter = New QueryFilter

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pQueryFilter.WhereClause = "SEC = '" &amp;amp; sSEC &amp;amp; "'" &amp;amp; " AND TWP = '" &amp;amp; sTWP &amp;amp; "'" &amp;amp; " AND RGE = '" &amp;amp; sRGE &amp;amp; "'" &amp;amp; " AND MER = '" &amp;amp; sMER &amp;amp; "'"

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, Nothing, Nothing)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Perform the selection using the user input.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pFeatureSelection.SelectFeatures(pQueryFilter, esriSelectionResultEnum.esriSelectionResultNew, False)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will obviously be needing modification to suit your code/attributes. The only thing I left out, is that you need to set the pFeatureSelection to the feature layer you're selecting attributes from (pFeatureSelection = pFeatureLayer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mine basically says where field "SEC" is equal to the string "sSec" which I get from Me.txtbox_Sec.Text, and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this gives you at least a little help. It's a very simple query, but works for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/5-combobox-to-select-by-attributes-from-joined/m-p/449568#M12216</guid>
      <dc:creator>deleted-user-VeC5jUIlNXtq</dc:creator>
      <dc:date>2021-12-11T20:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: 5 Combobox to Select By Attributes From Joined Table</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/5-combobox-to-select-by-attributes-from-joined/m-p/449569#M12217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I should simplify as well, in case my code isn't working for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 1. Try getting the text from the combo boxes into strings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 2. Use those strings as the conditions for the Selection query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm interested to see if it works, so I'll check back when you reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 18:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/5-combobox-to-select-by-attributes-from-joined/m-p/449569#M12217</guid>
      <dc:creator>deleted-user-VeC5jUIlNXtq</dc:creator>
      <dc:date>2013-05-08T18:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: 5 Combobox to Select By Attributes From Joined Table</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/5-combobox-to-select-by-attributes-from-joined/m-p/449570#M12218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to make a query including some comboboxes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to show count of objects matches attributes between two values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to show count of houses by using rent values between 21 and 55.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first combobox to select small value, secont to select bigger value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and finally i have two layers, both of the layers should have two comboboxes and two count values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope it would be clear to understand my needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kindly Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 12:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/5-combobox-to-select-by-attributes-from-joined/m-p/449570#M12218</guid>
      <dc:creator>geomatic</dc:creator>
      <dc:date>2013-11-15T12:52:03Z</dc:date>
    </item>
  </channel>
</rss>

