<?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 Get a reference to a non-spatial data table on the source tab in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-a-reference-to-a-non-spatial-data-table-on-the/m-p/226924#M5909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to query a table that has non spatial data and is available on the source tab.&amp;nbsp; If I physically select the table, the code below code works.&amp;nbsp; I don't want to be required to select the table in order to get the table reference and do the query.&amp;nbsp; Can someone tell me how to do this using the table name? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim mxDocument As ESRI.ArcGIS.ArcMapUI.IMxDocument = CType(My.ArcMap.Application.Document, ESRI.ArcGIS.ArcMapUI.IMxDocument) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim contentsView As ESRI.ArcGIS.ArcMapUI.IContentsView = mxDocument.ContentsView(1) ' 0 = usually the Display tab, 1 = usually the Source tab&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim table As ESRI.ArcGIS.Geodatabase.ITable = CType(contentsView.SelectedItem, ESRI.ArcGIS.Geodatabase.ITable)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim cursor As ICursor = PerformAttributeQuery(table, "OBJECTID = 1")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 20:51:35 GMT</pubDate>
    <dc:creator>BrianWestfall</dc:creator>
    <dc:date>2011-12-09T20:51:35Z</dc:date>
    <item>
      <title>Get a reference to a non-spatial data table on the source tab</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-a-reference-to-a-non-spatial-data-table-on-the/m-p/226924#M5909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to query a table that has non spatial data and is available on the source tab.&amp;nbsp; If I physically select the table, the code below code works.&amp;nbsp; I don't want to be required to select the table in order to get the table reference and do the query.&amp;nbsp; Can someone tell me how to do this using the table name? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim mxDocument As ESRI.ArcGIS.ArcMapUI.IMxDocument = CType(My.ArcMap.Application.Document, ESRI.ArcGIS.ArcMapUI.IMxDocument) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim contentsView As ESRI.ArcGIS.ArcMapUI.IContentsView = mxDocument.ContentsView(1) ' 0 = usually the Display tab, 1 = usually the Source tab&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim table As ESRI.ArcGIS.Geodatabase.ITable = CType(contentsView.SelectedItem, ESRI.ArcGIS.Geodatabase.ITable)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim cursor As ICursor = PerformAttributeQuery(table, "OBJECTID = 1")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 20:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-a-reference-to-a-non-spatial-data-table-on-the/m-p/226924#M5909</guid>
      <dc:creator>BrianWestfall</dc:creator>
      <dc:date>2011-12-09T20:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get a reference to a non-spatial data table on the source tab</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-a-reference-to-a-non-spatial-data-table-on-the/m-p/226925#M5910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You want to use the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Interface&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IStandaloneTableCollection_Interface/001200000qv4000000/"&gt;IStandaloneTableCollection&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2011 18:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-a-reference-to-a-non-spatial-data-table-on-the/m-p/226925#M5910</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2011-12-10T18:30:49Z</dc:date>
    </item>
  </channel>
</rss>

