<?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: How to create a form in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691667#M53630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's a very good question, and one would expect a facility to do exactly that. Link to a nice form from ArcMap&amp;nbsp; without having to redevelop the Access form. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be possible to call up the form from a Python script using&amp;nbsp; the COM interface, but I have not done it myself. I have opened Excel spreadsheets and Word documents. How to do this is well described in the book Python Programming on Win32 by Hammond.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.amazon.com/Python-Programming-WIN32-Windows-Programmers/dp/1565926218" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.amazon.com/Python-Programming-WIN32-Windows-Programmers/dp/1565926218&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I expect that if you are familiar with programming in Access you will be able to call your form from a Python script running in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do post a how-to if your are successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You will need to install the win32all module which is also needed for the Pythonwin IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example opening a spreadsheet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
xlApp.Visible = 1
xlApp.Workbooks.Add()
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:06:45 GMT</pubDate>
    <dc:creator>KimOllivier</dc:creator>
    <dc:date>2021-12-12T05:06:45Z</dc:date>
    <item>
      <title>How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691658#M53621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an access database that we have forms that we input data that we use to address customers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the question is can ArcMap have an ability to create a form maybe attach to a point layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would this be done through python. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help much appreciate or what are my options.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 13:06:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691658#M53621</guid>
      <dc:creator>HectorChapa</dc:creator>
      <dc:date>2012-08-15T13:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691659#M53622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;would this form be a duplicate of one that already exists in Access? or would it be for filling in fields that aren't in the Access DB?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 14:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691659#M53622</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-08-15T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691660#M53623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The form is in access database. What you mean by duplicate forms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason i wanted in arcmap because we geoproccess the form into a point in the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words we have to open access database to look at the information then open arcmap and put the data as an address point thats tidious. we want to populate a form and that form because a point in the map. Any solutions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 15:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691660#M53623</guid>
      <dc:creator>HectorChapa</dc:creator>
      <dc:date>2012-09-13T15:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691661#M53624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Definitely possible to have a "form" in ArcMap that prompts you to type in values... are you looking to add new records to a table? Or are you looking to add new points or polygons?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have the correct attributes/domains, and have an edit session open, the "form" is the attributes window...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IF you're looking to append data to a table, you could write a script to append a row to the table, and attach the script to a tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're not talking about doing this in Desktop, but rather in a web-application... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It really depends on you're purpose etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 15:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691661#M53624</guid>
      <dc:creator>CameronWallace</dc:creator>
      <dc:date>2012-09-13T15:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691662#M53625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In other words we have to open access database to look at the information then open arcmap and put the data as an address point &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd recommend using the database as the single point for any data entry and management.&amp;nbsp; Work on a process to bring those data into GIS to create your point data against those tables instead.&amp;nbsp; The more places you have to enter and manage data, the more opportunity for error get introduced.&amp;nbsp; Access is going to have far better capabilites for creating data entry forms and quality control on the data entry process than you have within ArcMap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 16:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691662#M53625</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-09-13T16:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691663#M53626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is the link to the video wat i am trying to explain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.youtube.com/watch?v=1S8KqE5u5W4&amp;amp;feature=youtu.be"&gt;http://www.youtube.com/watch?v=1S8KqE5u5W4&amp;amp;feature=youtu.be&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 15:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691663#M53626</guid>
      <dc:creator>HectorChapa</dc:creator>
      <dc:date>2013-02-01T15:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691664#M53627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use this link instead &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.youtube.com/watch?v=1S8KqE5u5W4"&gt;http://www.youtube.com/watch?v=1S8KqE5u5W4&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 15:32:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691664#M53627</guid>
      <dc:creator>HectorChapa</dc:creator>
      <dc:date>2013-02-01T15:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691665#M53628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make sure to watch it in 720 and full screen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 15:33:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691665#M53628</guid>
      <dc:creator>HectorChapa</dc:creator>
      <dc:date>2013-02-01T15:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691666#M53629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, if your data is in a personal geodatabase, that's Access right off the bat, maybe make it easier.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 20:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691666#M53629</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2013-02-01T20:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691667#M53630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's a very good question, and one would expect a facility to do exactly that. Link to a nice form from ArcMap&amp;nbsp; without having to redevelop the Access form. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be possible to call up the form from a Python script using&amp;nbsp; the COM interface, but I have not done it myself. I have opened Excel spreadsheets and Word documents. How to do this is well described in the book Python Programming on Win32 by Hammond.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.amazon.com/Python-Programming-WIN32-Windows-Programmers/dp/1565926218" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.amazon.com/Python-Programming-WIN32-Windows-Programmers/dp/1565926218&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I expect that if you are familiar with programming in Access you will be able to call your form from a Python script running in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do post a how-to if your are successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You will need to install the win32all module which is also needed for the Pythonwin IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example opening a spreadsheet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
xlApp.Visible = 1
xlApp.Workbooks.Add()
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691667#M53630</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2021-12-12T05:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691668#M53631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could also try building the form using Tkinter.&amp;nbsp; You need to import tkinter into your python code before using.&amp;nbsp; There is sample code around that ESRI has developed showing scroll boxes, pick lists, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 14:47:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691668#M53631</guid>
      <dc:creator>karlkliparchuk1</dc:creator>
      <dc:date>2013-02-04T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a form</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691669#M53632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Like Kim was saying... use the win32com module to give Python access to your form:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;from win32com.client import Dispatch
strDbName = 'my_database.mdb'
objAccess = Dispatch("Access.Application")
objAccess.Visible = False
objAccess.OpenCurrentDatabase(strDbName)
objDB = objAccess.CurrentDb()
objAccess.OpenForm('my_form')&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to drill down even farther to the actual form objects... for example, interactively populate the form's lat/long info. It works just like VBA once you have a COM hook into the objAccess.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-a-form/m-p/691669#M53632</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-12T05:06:48Z</dc:date>
    </item>
  </channel>
</rss>

