<?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: sample examples of codes written in python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615368#M48023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well,&amp;nbsp;&amp;nbsp; All thank you, but I'm not making much progress:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My target is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;D:/WRP_CIDNE/CIDNE4_DEV.accdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The table in this database is "KDHR".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After clip&amp;amp;join I want the table to be in the same database named "TAGGED".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Walt.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 10:56:17 GMT</pubDate>
    <dc:creator>WalterPeterson</dc:creator>
    <dc:date>2014-05-23T10:56:17Z</dc:date>
    <item>
      <title>Re: Cannot write tables to .accdb database from arcpy</title>
      <link>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615362#M48017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been after some help for two days now.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still have not found and example that will work for me.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use Py to get a table from MS ACCESS, clip, join and return the result in a new table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Walt.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 14:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615362#M48017</guid>
      <dc:creator>WalterPeterson</dc:creator>
      <dc:date>2014-05-22T14:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: sample examples of codes written in python</title>
      <link>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615363#M48018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've been after some help for two days now.. &lt;BR /&gt;&lt;BR /&gt;Still have not found and example that will work for me.. &lt;BR /&gt;&lt;BR /&gt;Use Py to get a table from MS ACCESS, clip, join and return the result in a new table.&lt;BR /&gt;&lt;BR /&gt;Walt.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python examples are at the bottom of each the following pages...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;get a table from MS ACCESS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001200000027000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//001200000027000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;clip:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//000800000004000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//000800000004000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;join:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000064000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000064000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return the result in a new table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000035000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000035000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 15:07:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615363#M48018</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2014-05-22T15:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: sample examples of codes written in python</title>
      <link>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615364#M48019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;get a table from MS ACCESS:&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001200000027000000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//001200000027000000&lt;/A&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no direct way to reference an MS Access Table to run thru the TableToTable_conversion method (I didn't notice it in the doc).&amp;nbsp; Well, at least it didn't work for me just now -- I wonder if this has to do with 64bit and Access Drivers related issues?&amp;nbsp; Anyway, I get a 000732: Input Rows not supported error.&amp;nbsp; Or maybe I am simply not understanding the method and incorrectly applying it below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

intab = r'C:\TestAccessDB\Testdb.mdb\TestTable'
wsout = r'H:\Documents\ArcGIS\Default.gdb'
arcpy.TableToTable_conversion(intab, wsout, "WindOUT")

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:18:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615364#M48019</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-12T02:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: sample examples of codes written in python</title>
      <link>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615365#M48020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There is no direct way to reference an MS Access Table to run thru the TableToTable_conversion method (I didn't notice it in the doc).&amp;nbsp; Well, at least it didn't work for me just now -- I wonder if this has to do with 64bit and Access Drivers related issues? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My mistake, I read it as MS Excel...instead of MS Access.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 16:33:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615365#M48020</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2014-05-22T16:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: sample examples of codes written in python</title>
      <link>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615366#M48021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My mistake, I read it as MS Excel...instead of MS Access.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't implemented it, but there is always the pyodbc library to grab the table(s)!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 16:41:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615366#M48021</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2014-05-22T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: sample examples of codes written in python</title>
      <link>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615367#M48022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There is no direct way to reference an MS Access Table to run thru the TableToTable_conversion method (I didn't notice it in the doc). &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK this is strange...it IS actually an option (&lt;/SPAN&gt;&lt;SPAN style="color:#ff0000;"&gt;in red below&lt;/SPAN&gt;&lt;SPAN&gt;) in the doc and works if you use the tool from the toolbox, but I can't get it to work in a script...???&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy, os
arcpy.env.workspace = os.getcwd()
arcpy.TableToTable_conversion('NP.mdb/myTable', 'NFG.gdb', "outTable")
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN style="font-style: italic; font-size: 3; font-family: arial;"&gt;Usage&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style: italic; font-size: 3; font-family: arial;"&gt;This tool supports the following table formats as input:&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style: italic; font-size: 3; font-family: arial;"&gt;dBASE (.dbf)&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style: italic; font-size: 3; font-family: arial;"&gt;Comma Separate Value (.csv)&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style: italic; font-size: 3; font-family: arial;"&gt;tab delimited text (.txt)&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style: italic; font-size: 3; font-family: arial;"&gt;INFO&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style: italic; font-size: 3; font-family: arial;"&gt;VPF&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style: italic; font-size: 3; font-family: arial;"&gt;OLE database&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style: italic; font-size: 3; font-family: arial;"&gt;&lt;SPAN style="color:#ff0000;"&gt;personal&lt;/SPAN&gt;, file, or SDE geodatabase&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style: italic; font-size: 3; font-family: arial;"&gt;in-memory table views&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:18:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615367#M48022</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2021-12-12T02:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: sample examples of codes written in python</title>
      <link>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615368#M48023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well,&amp;nbsp;&amp;nbsp; All thank you, but I'm not making much progress:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My target is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;D:/WRP_CIDNE/CIDNE4_DEV.accdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The table in this database is "KDHR".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After clip&amp;amp;join I want the table to be in the same database named "TAGGED".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Walt.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 10:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615368#M48023</guid>
      <dc:creator>WalterPeterson</dc:creator>
      <dc:date>2014-05-23T10:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: sample examples of codes written in python</title>
      <link>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615369#M48024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Walt, in order to better service your question, can you start a new thread?&amp;nbsp; Rephrase your question and include more details:&amp;nbsp; your system info (which version of ArcGIS, your OS and whether 32 or 64 bit) and if possible attach some sample data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And just to clarify, when you say you have an accdb table, this doesn't sound like data that is 'spatially enabled' - you can't use a geoprocessing operation such as 'clip' on just a table...but you can do something like join to something else already spatially enabled, maybe make some sort of selection, and clip the result to create an output that perhaps you can copy rows from in order to create just a table (no spatial attributes).&amp;nbsp; However, lacking details, it isn't clear if you've established read-access to your accdb to begin with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS can 'piggyback' on the Access db format and use geodatabases with the mdb file extension - but this isn't read/write in quite the same way (nor is it recommended) in Access as it is in ArcGIS.&amp;nbsp; Do you indeed have an mdb geodatabase or is your source data created/maintained in Access?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS - Welcome to the forums!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 11:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615369#M48024</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2014-05-23T11:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot write tables to .accdb database from arcpy</title>
      <link>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615370#M48025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Well, at least it didn't work for me just now -- I wonder if this has to do with 64bit and Access Drivers related issues?&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy 64 bit (background processing) does not support read or write to personal geodatabase (.mdb). There are other limitations too, &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002100000040000000"&gt;documented in the help.&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;can &lt;/SPAN&gt;&lt;SPAN&gt;read and write to .mdb using 32-bit arcpy -- but .mdb files accessed in this way should not be opened using MS Access, as the geodatabase workspace tables are easily damaged.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can read and write Access 2007(.accdb) databases (through ODBC drivers). &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//005s00000024000000"&gt;Arc 10.2 help: Connecting to a 2007 Microsoft Access database (.accdb) in ArcGIS&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 15:43:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/re-cannot-write-tables-to-accdb-database-from/m-p/615370#M48025</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-05-23T15:43:03Z</dc:date>
    </item>
  </channel>
</rss>

