<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tony's Microsoft Access Blog : Access, Utility</title><link>http://msmvps.com/blogs/access/archive/tags/Access/Utility/default.aspx</link><description>Tags: Access, Utility</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Ensuring uniform control width on forms and reports</title><link>http://msmvps.com/blogs/access/archive/2009/04/06/ensuring-uniform-control-width-on-forms-and-reports.aspx</link><pubDate>Tue, 07 Apr 2009 01:31:21 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1685393</guid><dc:creator>Tony</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/access/rsscomments.aspx?PostID=1685393</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/access/commentapi.aspx?PostID=1685393</wfw:comment><comments>http://msmvps.com/blogs/access/archive/2009/04/06/ensuring-uniform-control-width-on-forms-and-reports.aspx#comments</comments><description>&lt;p&gt;Jim, a good friend and client complained, err commented, that the unit number was too small on one key form in the &lt;a href="http://www.granitefleet.com/" target="_blank"&gt;Granite Fleet Manager&lt;/a&gt;.&amp;nbsp; He had increased the number of characters in that field on the table from six to eight. I vaguely recall him mentioning that once.&lt;/p&gt; &lt;p&gt;&lt;a href="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/access/UniformControlSize_5F00_2.jpg"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px;" height="119" alt="UniformControlSize" src="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/access/UniformControlSize_5F00_thumb.jpg" width="558" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;I had increased the size of that field on some forms for them a while back but clearly I hadn&amp;#39;t done a good job of testing an example value.&amp;nbsp; Turns out I also hadn&amp;#39;t increased the field size in my testing, demo or data MDB files either.&amp;nbsp; Oops.&amp;nbsp;&amp;nbsp; I&amp;#39;m sure he forgot to tell me.&amp;nbsp; (I can just see Jim now rolling his eyes and giving me the appropriate finger.&amp;nbsp; &amp;lt;smile&amp;gt;)&lt;/p&gt; &lt;p&gt;I also knew though that I would&amp;#39;ve missed a few and not made them wide enough.&amp;nbsp;&amp;nbsp; As far as I know &lt;a href="http://www.rickworld.com/products.html" target="_blank"&gt;Rick&amp;#39;s Find and Replace&lt;/a&gt; doesn&amp;#39;t have any way of doing this kind of analysis so I threw together some code to find where all the problems existed.&amp;nbsp;&amp;nbsp; And, yup, only about 5 of the 20 occurrences of that field were sufficiently wide.&amp;nbsp; &amp;lt;sigh&amp;gt;&lt;/p&gt; &lt;p&gt;So I did some more work and realized that I should make this utility available to everyone.&amp;nbsp; It has been suggested that I make this an Add-In but I don&amp;#39;t have the time right now to figure out the quirks of the URegSysInfo table, etc, etc.&amp;nbsp; Anyhow visit &lt;a href="http://www.granite.ab.ca/access/ensuringuniformcontrolwidth.htm" target="_blank"&gt;Ensuring uniform control width on forms and reports&lt;/a&gt; for details and a link to download an MDB containing the table and a form.&lt;/p&gt; &lt;p&gt; This code illustrates going through the collection of forms and reports then going through the collection of controls on each form or report.&amp;nbsp;&amp;nbsp;&amp;nbsp; If the control matches certain criteria, being a text, combo or list box then various properties are read from the control and placed in a table.&amp;nbsp; If a combo box or list box the field name is extracted from each column of the Row Source query. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1685393" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/access/archive/tags/Access/default.aspx">Access</category><category domain="http://msmvps.com/blogs/access/archive/tags/Access+Tips+Website+Update/default.aspx">Access Tips Website Update</category><category domain="http://msmvps.com/blogs/access/archive/tags/Utility/default.aspx">Utility</category></item></channel></rss>