<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Microsoft Access Team Blog : Graphic</title><link>http://blogs.msdn.com/access/archive/tags/Graphic/default.aspx</link><description>Tags: Graphic</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Image Buttons</title><link>http://blogs.msdn.com/access/archive/2007/09/04/image-buttons.aspx</link><pubDate>Tue, 04 Sep 2007 20:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4748608</guid><dc:creator>Zac Woodall</dc:creator><slash:comments>9</slash:comments><comments>http://blogs.msdn.com/access/comments/4748608.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=4748608</wfw:commentRss><description>&lt;P&gt;&lt;EM&gt;This is the first installment in a series of posts about Access 2007 originally made by one of our developers on the Access team on his own blog that I'm moving here for the broader audience to enjoy.&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Up until this point, Access has supported command buttons with text or a picture, but never both at the same time. This has been a long standing request from users: the capability of showing both the caption and the picture. In Access 2007, you will notice a new property off of the command button called "Picture Caption Arrangement".&lt;/P&gt;
&lt;P&gt;This property, which can be set to the following values:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;No Picture Caption&lt;/STRONG&gt; - This setting is the legacy behavior. If you have a caption specified, the button will show it. If you have a picture, only the picture will be shown; &lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;General&lt;/STRONG&gt; - The image will be shown to the left of the text (if you're in a left-to-right language, like English) or the right of the caption (if you're in a right-to-left language, like Hebrew);&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Top/Bottom/Right/Left&lt;/STRONG&gt; - The image will be shown in the specified arrangement: at the top, bottom, right or left of the caption (just pick one).&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;You will also notice that there is a new "Alignment" property. This property allows you to position the caption&amp;nbsp; and picture within the command button to the following settings (note this property can be used whether you have just a picture, just a caption, or both):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;General&lt;/STRONG&gt; - This is the legacy behavior. The image and caption will be positioned the left of the text (if you're in a left-to-right language, like English) or the right of the caption (if you're in a right-to-left language, like Hebrew); &lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Left/Center/Right&lt;/STRONG&gt; - The image and caption will be positioned to the left, centered or to the right (just pick one);&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Distribute&lt;/STRONG&gt; - This is equivalent to the "justified" setting in Microsoft Word. The image and caption will be spaced out to fill out the command button. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;With these two new properties (which are of course also available through the OM), you will now be able to create some cool looking command buttons without any label trickery needed. Since you can now use JPEGs, PNGs and other newer image formats with Access 2007, you can create some really impressive buttons.&lt;/P&gt;
&lt;P&gt;For example, in the snapshot below I created three buttons using Windows Vista backgrounds as the pictures. I changed the buttons' back style to transparent and played with the alignment and picture caption alignment settings:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="Image Buttons in Access 2007" src="http://blogs.msdn.com/photos/accessblogimages/images/4748505/original.aspx" mce_src="http://blogs.msdn.com/photos/accessblogimages/images/4748505/original.aspx"&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4748608" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/access/archive/tags/Access+2007/default.aspx">Access 2007</category><category domain="http://blogs.msdn.com/access/archive/tags/Report/default.aspx">Report</category><category domain="http://blogs.msdn.com/access/archive/tags/User+Interface/default.aspx">User Interface</category><category domain="http://blogs.msdn.com/access/archive/tags/Form/default.aspx">Form</category><category domain="http://blogs.msdn.com/access/archive/tags/Graphic/default.aspx">Graphic</category><category domain="http://blogs.msdn.com/access/archive/tags/Power+Tips/default.aspx">Power Tips</category></item><item><title>A Tool for Building Custom AutoFormats</title><link>http://blogs.msdn.com/access/archive/2006/06/20/a-tool-for-building-custom-autoformats.aspx</link><pubDate>Tue, 20 Jun 2006 09:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:639954</guid><dc:creator>Erik Rucker</dc:creator><slash:comments>8</slash:comments><comments>http://blogs.msdn.com/access/comments/639954.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=639954</wfw:commentRss><description>&lt;P&gt;In the &lt;A href="http://blogs.msdn.com/access/archive/2006/06/19/637599.aspx" mce_href="http://blogs.msdn.com/access/archive/2006/06/19/637599.aspx"&gt;last post&lt;/A&gt;, I discussed the new AutoFormats in Access 2007.&amp;nbsp; In this post, I'll describe more about how they work and provide a tool that allows you to create your own formats and customize the ribbon gallery of formats.&lt;/P&gt;
&lt;H2&gt;AutoFormat Storage&lt;/H2&gt;
&lt;P&gt;Access 2007 stores AutoFormat information in two different locations, depending on whether those formats have been customized or not.&amp;nbsp; Un-customized formats are stored in tables in an Access 2007 format database that is installed with Office and is shared across all users who have no customized AutoFormats.&amp;nbsp; The file is located at:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %PROGRAMFILES%\Microsoft Office\Office12\ACCWIZ\ACWZUSR12.accdu&lt;/P&gt;
&lt;P&gt;If a user has used the AutoFormat Wizard to add, edit, or delete an AutoFormat, then Access will create a copy of the AutoFormat file for that user.&amp;nbsp; From that point on, all AutoFormat data for that user is stored in their personal database, which is at:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %APPDATA%\Microsoft\Access\ACWZUSR12.accdu&lt;/P&gt;
&lt;P&gt;This is a similar scheme to the way AutoFormat information was stored in Access 2003, but the table schema has changed for Access 2007 formats, so it is not possible to reuse a version of the 2003 database to retain existing AutoFormat settings.&lt;/P&gt;
&lt;H2&gt;AutoFormat Functionality&lt;/H2&gt;
&lt;DIV class=Section1&gt;The AutoFormat engine works by applying a single format per control type per section.&amp;nbsp; This means, for example, that all the textboxes that appear in the details section of a report will get the same background color, font face, etc. as one another, but that these settings may all be different than the textboxes in the Header or another section.&amp;nbsp; The AutoFormat database simply lists all of the property settings for each of the control types for each of the sections.&amp;nbsp; There are four key tables in the database for these settings, along with other tables for things like supporting functionality, localization, and support for other features.&amp;nbsp; They four key tables for formatting are: 
&lt;UL&gt;
&lt;LI&gt;&lt;B&gt;tblStyles - &lt;/B&gt;this is a top-level style listing, normalized to style level data like the name of the style and the picture to display.&amp;nbsp; Note that pictures are stored in the Access internal "Picture Data" format which can be set and retrieved using the PictureData property on images or form and report objects.&lt;/LI&gt;&lt;/UL&gt;
&lt;P style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'"&gt;o&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;B&gt;tblSectionStyles&lt;/B&gt; – Each style has a list of section styles, being the appearance for each section (page header, detail, form footer, etc…).&amp;nbsp; Formats included here are section background color and alternating background color.&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 1.5in; TEXT-INDENT: -0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Wingdings"&gt;§&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;B&gt;tblControlStyles &lt;/B&gt;– For each section, there is a list of control styles, with 0 or 1 entries for each control type.&amp;nbsp; Control styles have the bulk of the interesting formatting to do with text, like Bold, Italics, Underline, as well as shape appearance, like Border Color, Back Style, Special Effect, etc…&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 1.5in; TEXT-INDENT: -0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Wingdings"&gt;§&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;B&gt;tblLayoutStyles &lt;/B&gt;– Formatting for layouts is also specified on a per-section basis.&amp;nbsp; There can be 0 or 1 format entries per section for both Stacked and Tabular layouts.&amp;nbsp; Layout formatting is mostly to do with gridlines.&amp;nbsp; For example, all stacked layouts in the detail section can have a ‘Both’ grid style, while all Tabular Layouts have the ‘Vertical’ style.&lt;/P&gt;
&lt;H2&gt;AutoFormat Editing Tool&lt;/H2&gt;
&lt;P&gt;The format of these tables inside the database was never meant to be human readable, and can be pretty terse to browse.&amp;nbsp; To make life easier for our own internal editing, we assembled a little tool (an Access database, of course) for viewing, adding, and editing AutoFormats for a given instance of the Acwzusr12.accdu file.&amp;nbsp; If you would like to play around with AutoFormats a little bit, this tool will make that easier.&amp;nbsp; Keep in mind that this is, something we just threw together to work with the rather complex AutoFormat data more easily.&amp;nbsp; The code is pretty rough for a sample, without extensive comments or robust error handling, but it works well for reading and editing AutoFormat data, and what’s more, the tool contains updated AutoFormat data with a number of bug fixes we’ve made since Beta 2.&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;The tool is available &lt;A href="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/Autoformat%20Editor.zip" mce_href="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/Autoformat%20Editor.zip"&gt;here&lt;/A&gt; and is a 2m zip file, so will take a little while to download.&amp;nbsp; This tool will also be part of the Access 2007 Developer Toolkit and will be both polished and contain the final AutoFormat settings at that point.&amp;nbsp; The file simply contains an Access database, which you can save to your machine and open.&amp;nbsp; You'll need to either save the file to a trusted location on your machine or manually enable VBA for the file to work.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Opening the tool brings up the following dialog:&lt;/P&gt;
&lt;P style="MARGIN-BOTTOM: 0px"&gt;&lt;A href="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/40%20-%20Tool%201.JPG" mce_href="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/40%20-%20Tool%201.JPG"&gt;&lt;IMG height=145 src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/40%20-%20Tool%201%20-%20Thumb.JPG" width=345 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/40%20-%20Tool%201%20-%20Thumb.JPG"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="MARGIN-TOP: 0px"&gt;&lt;I&gt;(Click image to enlarge)&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;Clicking the first link "Step 1:&amp;nbsp; Add / Edit AutoFormats" brings up a large dialog with a list of all of the formats and each of the settings for each of those formats:&lt;/P&gt;
&lt;P style="MARGIN-BOTTOM: 0px"&gt;&lt;A href="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/41%20-%20Edit%20Page.JPG" mce_href="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/41%20-%20Edit%20Page.JPG"&gt;&lt;IMG height=265 src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/41%20-%20Edit%20Page%20-%20Thumb.JPG" width=237 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/41%20-%20Edit%20Page%20-%20Thumb.JPG"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="MARGIN-TOP: 0px"&gt;&lt;I&gt;(Click image to enlarge)&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;This is just a standard Access form, so you can filter or sort it as necessary.&amp;nbsp; There is a separate record for the both the Form and Report settings for each format, and then each of the settings for each control and section is laid out below.&amp;nbsp; The AutoFormat property called "Gallery Index" at the top determines where this format goes in the AutoFormat Gallery shown in the last post.&amp;nbsp; This doesn't update the picture in the ribbon (to do that you need to update the ribbon XML file, which we'll cover later) but this is an easy way to get your format on the ribbon.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;After you have updated the styles as you like, including adding or deleting any additional styles, you'll need to regenerate the AutoFormat tables.&amp;nbsp; The first setup is to click the compile button, which runs a series of queries and repopulates all of the AutoFormat tables:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=143 src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/42%20-%20Compiling.JPG" width=360 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/42%20-%20Compiling.JPG"&gt;&lt;/P&gt;
&lt;P&gt;You can optionally then preview the styles, with some built-in UI.&amp;nbsp; This is less of a visual preview and a set of reports to allow you to verify all the settings:&lt;/P&gt;
&lt;P style="MARGIN-BOTTOM: 0px"&gt;&lt;A href="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/43%20-%20Preview.JPG" mce_href="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/43%20-%20Preview.JPG"&gt;&lt;IMG height=181 src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/43%20-%20Preview%20-%20Thumb.JPG" width=243 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/43%20-%20Preview%20-%20Thumb.JPG"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="MARGIN-TOP: 0px"&gt;&lt;I&gt;(Click image to enlarge)&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;There is a report that verifies that there are no missing styles, which you can access by clicking the Verify button:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=270 src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/44%20-%20Verify.JPG" width=334 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/44%20-%20Verify.JPG"&gt;&lt;/P&gt;
&lt;P&gt;At this point, the AutoFormat database has been rebuilt, and you simply need to publish it to the correct location on your machine.&amp;nbsp; You can do this from the initial dialog.&amp;nbsp; First you click the Browse hyperlink to set the file's location (this should be defaulted for you, and all you have to do is click OK).&amp;nbsp; Then click Publish and you're done.&lt;/P&gt;
&lt;P style="MARGIN-BOTTOM: 0px"&gt;&lt;A href="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/45%20-%20Publish.JPG" mce_href="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/45%20-%20Publish.JPG"&gt;&lt;IMG height=68 src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/45%20-%20Publish%20-%20Thumb.JPG" width=275 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/33%20-%20AutoFormat%202/45%20-%20Publish%20-%20Thumb.JPG"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="MARGIN-TOP: 0px"&gt;&lt;I&gt;(Click image to enlarge)&lt;/I&gt;&lt;/P&gt;
&lt;H2&gt;Next Time&lt;/H2&gt;
&lt;P&gt;The next big post will be about using the new Data Collection feature to add or update data through emailed forms.&amp;nbsp; Those forms can either be plain HTML that work on practically any email client or InfoPath forms that provide a great user experience for Office 2007 users.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=639954" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/access/archive/tags/Access+2007/default.aspx">Access 2007</category><category domain="http://blogs.msdn.com/access/archive/tags/Style/default.aspx">Style</category><category domain="http://blogs.msdn.com/access/archive/tags/Graphic/default.aspx">Graphic</category><category domain="http://blogs.msdn.com/access/archive/tags/Download/default.aspx">Download</category></item><item><title>Updated AutoFormats and New UI</title><link>http://blogs.msdn.com/access/archive/2006/06/19/updated-autoformats-and-new-ui.aspx</link><pubDate>Mon, 19 Jun 2006 14:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:637599</guid><dc:creator>Erik Rucker</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/access/comments/637599.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=637599</wfw:commentRss><description>&lt;P&gt;Access 2007 has significantly updated the AutoFormats included in the box, and we'll provide a tool that can help create your own formats or customize the existing ones.&amp;nbsp; This provides a fast way to generate a good (and modern) looking set of formatting across all your applications.&amp;nbsp; Access, along with the other Office applications, has supported AutoFormat for some time, but the formats themselves are looking a little stale.&amp;nbsp; Access 2007 addresses that.&amp;nbsp; In this post, I'll cover the built-in AutoFormats and how to customize them with the UI.&amp;nbsp; In the next post I'll describe the tool and how to use it to built your own formats and customize the gallery below.&lt;/P&gt;
&lt;H2&gt;AutoFormat Tools&lt;/H2&gt;
&lt;P&gt;The ribbon makes it much easier to surface controls for things like AutoFormats.&amp;nbsp; Where before we'd have to throw a dialog to show the formats, in Access 2007 we can simply show a "gallery":&lt;/P&gt;
&lt;P&gt;&lt;IMG height=157 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/2%20-%20Gallery%20Widget.JPG" width=320 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/2%20-%20Gallery%20Widget.JPG"&gt;&lt;/P&gt;
&lt;P&gt;The gallery control in the ribbon shows 4 formats in a row at 1280*1024, and provides controls for scrolling through the other rows of formats.&amp;nbsp; In addition, there's a "More" button that expands the gallery into an in-place pop-up that shows all the formats present and is both scrollable and resize-able to accommodate custom formats.:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=322 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/4%20-%20Gallery.JPG" width=382 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/4%20-%20Gallery.JPG"&gt;&lt;/P&gt;
&lt;H2&gt;The Built-in Formats&lt;/H2&gt;
&lt;P&gt;The default format is the "Office 2007" format and is the one you get if you use the Quick Create tools to build a new form.&amp;nbsp; In the examples, I'm showing a simple quick-created form.&amp;nbsp; Note that the form is in Layout View, so the dotted line and yellow highlighting around the ID field below won't appear at runtime.&amp;nbsp; The example below is the default quick-created form.&amp;nbsp; Below that is each of the other built-in AutoFormats in name order.&amp;nbsp; A couple of the formats have interesting stuff that is right-aligned, so I've linked an expanded version as well.&amp;nbsp; Finally, &lt;/P&gt;
&lt;P&gt;Default:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=274 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/1%20-%20Basic%20Form.JPG" width=296 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/1%20-%20Basic%20Form.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Access 2003:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=227 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/5%20-%20Access2003.JPG" width=369 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/5%20-%20Access2003.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Apex:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=263 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/6%20-%20Apex.JPG" width=388 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/6%20-%20Apex.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Aspect:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=260 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/7%20-%20Aspect.JPG" width=395 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/7%20-%20Aspect.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Civic:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=262 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/8%20-%20Civic.JPG" width=395 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/8%20-%20Civic.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Concourse:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=278 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/9%20-%20Concourse.JPG" width=409 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/9%20-%20Concourse.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Currency:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=265 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/10%20-%20Currency.JPG" width=400 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/10%20-%20Currency.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Deluxe:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=263 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/11%20-%20Deluxe.JPG" width=398 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/11%20-%20Deluxe.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Equity:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=264 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/12%20-%20Equity.JPG" width=399 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/12%20-%20Equity.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Flow:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=264 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/13%20-%20Flow.JPG" width=401 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/13%20-%20Flow.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Foundry:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=266 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/14%20-%20Foundry.JPG" width=400 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/14%20-%20Foundry.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Median:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=269 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/15%20-%20Median.JPG" width=403 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/15%20-%20Median.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Metro:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=274 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/16%20-%20Metro.JPG" width=408 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/16%20-%20Metro.JPG"&gt;&lt;/P&gt;
&lt;P&gt;None:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=256 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/17%20-%20None.JPG" width=399 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/17%20-%20None.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Northwind:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=261 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/18%20-%20Northwind.JPG" width=397 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/18%20-%20Northwind.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Office:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=268 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/19%20-%20Office.JPG" width=400 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/19%20-%20Office.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Opulent:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=273 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/20%20-%20Opulent.JPG" width=406 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/20%20-%20Opulent.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Oriel:&lt;/P&gt;
&lt;P style="MARGIN-BOTTOM: 0px"&gt;&lt;A href="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/21%20-%20Oriel%20-%20Large.JPG" mce_href="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/21%20-%20Oriel%20-%20Large.JPG"&gt;&lt;IMG height=268 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/21%20-%20Oriel.JPG" width=397 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/21%20-%20Oriel.JPG"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="MARGIN-TOP: 0px"&gt;&lt;I&gt;(Click image to enlarge)&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;Origin:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=263 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/22%20-%20Origin.JPG" width=393 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/22%20-%20Origin.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Solstice:&lt;/P&gt;
&lt;P style="MARGIN-BOTTOM: 0px"&gt;&lt;A href="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/23%20-%20Solstice%20-%20Large.JPG" mce_href="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/23%20-%20Solstice%20-%20Large.JPG"&gt;&lt;IMG height=266 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/23%20-%20Solstice.JPG" width=393 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/23%20-%20Solstice.JPG"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="MARGIN-TOP: 0px"&gt;&lt;I&gt;(Click image to enlarge)&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;Technic:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=264 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/24%20-%20Technic.JPG" width=396 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/24%20-%20Technic.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Trek:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=270 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/25%20-%20Trek.JPG" width=404 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/25%20-%20Trek.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Urban:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=264 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/26%20-%20Urban.JPG" width=397 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/26%20-%20Urban.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Verve:&lt;/P&gt;
&lt;P style="MARGIN-BOTTOM: 0px"&gt;&lt;A href="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/27%20-%20Verve%20-%20Large.JPG" mce_href="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/27%20-%20Verve%20-%20Large.JPG"&gt;&lt;IMG height=264 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/27%20-%20Verve.JPG" width=402 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/27%20-%20Verve.JPG"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="MARGIN-TOP: 0px"&gt;&lt;I&gt;(Click image to enlarge)&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;Windows Vista:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=271 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/28%20-%20WindowsVista.JPG" width=402 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/28%20-%20WindowsVista.JPG"&gt;&lt;/P&gt;
&lt;H2&gt;Customizing AutoFormats Through UI&lt;/H2&gt;
&lt;P&gt;Access 12 provide a similar AutoFormat wizard to that in 2003 that lets users customize the look of the formats or push changes back to them.&amp;nbsp; The wizard is launched from the bottom of the gallery and provide both a list of the formats with preview, and some customization controls.&lt;/P&gt;
&lt;P&gt;&lt;IMG height=274 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/29%20-%20Dialog%201.JPG" width=492 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/29%20-%20Dialog%201.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Clicking the Options button expands the dialog to allow control over which parts of the form or report get formatted:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=334 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/30%20-%20Dialog%202.JPG" width=490 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/30%20-%20Dialog%202.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Clicking Customize presents another dialog that allows the user to save changes back up to the format:&lt;/P&gt;
&lt;P&gt;&lt;IMG height=235 src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/31%20-%20Customize%20Add%20New.JPG" width=467 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/32%20-%20AutoFormat/31%20-%20Customize%20Add%20New.JPG"&gt;&lt;/P&gt;
&lt;P&gt;You can choose to either save the changes to a new AutoFormat or update the existing one (if it isn't one of the built-in formats).&amp;nbsp; If you create a new format, it will be available from the AutoFormat wizard dialog, but not from the collection on the ribbon.&amp;nbsp; However, we have created a tool that will let you update the contents of the gallery to present your own formats.&amp;nbsp; I'll cover that tool and how to build your own formats in the next post.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=637599" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/access/archive/tags/Access+2007/default.aspx">Access 2007</category><category domain="http://blogs.msdn.com/access/archive/tags/Style/default.aspx">Style</category><category domain="http://blogs.msdn.com/access/archive/tags/Graphic/default.aspx">Graphic</category></item><item><title>Better Looking Forms &amp;amp; Reports, Faster</title><link>http://blogs.msdn.com/access/archive/2006/04/25/better-looking-forms-reports-faster.aspx</link><pubDate>Tue, 25 Apr 2006 13:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:583584</guid><dc:creator>Erik Rucker</dc:creator><slash:comments>25</slash:comments><comments>http://blogs.msdn.com/access/comments/583584.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=583584</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Building modern looking data forms &amp;amp; reports in Access 2003 can be difficult.&amp;nbsp; Doing the heavy lifting is easy - there are great tools for building the data-bound portions of the form - but making the interface look great can be a challenge and can require some creative hacks.&amp;nbsp; &lt;A style="COLOR: blue; TEXT-DECORATION: underline; text-underline: single" href="http://utteraccess.com/" mce_href="http://utteraccess.com/"&gt;UtterAccess&lt;/A&gt; even has a popular &lt;A title="blocked::http://www.utteraccess.com/forums/postlist.php?Cat=&amp;amp;Board=55&amp;#10;http://www.utteraccess.com/forums/postlist.php?Cat=&amp;amp;Board=55" style="COLOR: blue; TEXT-DECORATION: underline; text-underline: single" href="http://www.utteraccess.com/forums/postlist.php?Cat=&amp;amp;Board=55" mce_href="http://www.utteraccess.com/forums/postlist.php?Cat=&amp;amp;Board=55"&gt;board&lt;/A&gt; devoted to helping people build better looking interfaces.&amp;nbsp; In Access 12, we've built a number of features that will help people build great looking apps with far less code, time and effort.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;H2&gt;Better Image Support&lt;/H2&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;We did work to improve native support for image formats. In the past, you could add pictures but there were some serious limitations. First, when the picture was added it was converted from its native format to a device independent bitmap (dib). This resulted in significant bloat if the image stored data in a compressed file format such as gif and jpg. Even worse in many cases, when the image was converted transparency was lost.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;Access 2007 now supports BMP, GIF, JPEG, Exif, PNG, TIFF and DiB without bloating the database size. Images with transparency work great.&amp;nbsp; You can see how we're using transparency below - the buttons are all transparent, as is the image in the title bar. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;IMG height=70 src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Header_v12.PNG" width=712 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Header_v12.PNG"&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;To ensure that database are backwards compatible, we created a new database property called “Preserve image format.” This property controls if the image is converted to a dib or stored in its native format. ACCDB databases default to storing images in their native format while MDB and ADP database Access 2007 will continue to convert images to DiBs so that the image is available when the form is used by older versions of Access. In a nutshell—if you want your image to be displayed in previous versions of Access make sure preserve image format is set to false. I recommend turning off the property if your app is deployed as a runtime or in an Access 2007 only environment. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;Another painful limitation of former versions was displaying images on a form or report that were stored in the file system. The Northwind employees form had 135 lines of code to make this work. Now the image control can be bound to a UNC path including jpg and png files. &lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;AutoFormats&lt;/H2&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Verdana"&gt;AutoFormats are a great way to create a consistent look across an application, but the existing themes were looking pretty dated.&amp;nbsp; In Access 12, t&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;here are 25 new themes that you can choose from that will add that final polished look to your application. The Quick Format gallery gives a small preview of the font and color schemes:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;IMG height=407 src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/AutoFormats.PNG" width=381 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/AutoFormats.PNG"&gt;&lt;/P&gt;
&lt;H2&gt;Other New Look Improvements&lt;/H2&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;In Access 11 the SizeMode property provides enums for Clip, Stretch, and Zoom. These properties do not allow us to create really small horizontal or vertical images that tile across the header. The 2003 behavior was to stretch the image across the entire form or report. In many cases the right effect is to stretch horizontally. &lt;SPAN style="COLOR: black"&gt;There are now two new enums: Stretch Horizontal and Stretch Vertical. This makes it possible to &lt;/SPAN&gt;stretch an image across the header of the form when it is the Picture property on the background of a form or report. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;We also did work to make the grid control more modern and remove the Windows 95 3-D look. Internally, we draw the grid colors from the exact same color palette as Excel.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;IMG height=140 src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Grid_V12.PNG" width=376 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Grid_V12.PNG"&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;A few weeks Deano asked about tab controls:&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class=MsoNormal&gt;&lt;I&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;“Also will tab controls blend correctly when you change the colours? &amp;nbsp;I use Access 2000 and there's a section in the top-right of the tab control that does not match the changed form colour.”&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;I’m pleased to say that the color now matches the form color. Here is a screen shot from WinXP:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;IMG height=224 src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Tabs.PNG" width=346 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Tabs.PNG"&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;We made a one change to buttons that I think folks will find useful. There is a new enum for backstyle called Transparent and a new property called HandOnHover. Using those two properties and you can create buttons that look like hyperlinks. BTW – have you seen the Vista buttons? I think they look great in our shell.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;Cyrus asked about pixel drawing problems on disabled images. This problem has been fixed in builds after beta 2 if preserve image format = false. We remove all the color from the image.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;There is still a some button work we want to consider in the next version. Cyrus—we hear you on button background colors and images and text. Another thing we wanted to do this version but didn’t get to was color properties for different mouse over states. &lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;New Attachment Data Type&lt;/H2&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;If you want to store images directly in the database—the attachment data-type and control works great. In the past users would use the OLE Object data type. Because of how OLE worked there were bloat issues as it had to store a preview of the file along with the OLE data. Attachments are a &lt;A href="http://blogs.msdn.com/access/archive/2006/03/14/551556.aspx" mce_href="http://blogs.msdn.com/access/archive/2006/03/14/551556.aspx"&gt;new complex data-type&lt;/A&gt; that stores multiple attachments to a record in a binary field in a hidden table. We compress the file when it is added if it isn’t already a compressed file type. Here is the dialog to manage attachments:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;IMG height=243 src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_Dialog.PNG" width=399 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_Dialog.PNG"&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;When the image has focus there is a helpful floating toolbar that allows you to navigate through records and launch the dialog.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;IMG height=156 src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_Floatie.PNG" width=456 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_Floatie.PNG"&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;There are three display as enums: Paperclip, Image, and Icon. The icon will always show up as a paper clip in datasheet view. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;&lt;IMG height=100 src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_Paperclip.PNG" width=167 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_Paperclip.PNG"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;Attachments are exposed in QBE similar to other complex data forms. Users can query for the collection or the expanded version returning a row for each attachment. Let me walk through an example with a simple issues database with one record that has 4 attachments. The query designer exposes three columns that are stored in the hidden complex data table: FileData, FileName, and FileType. Double clicking on the root Attachment node will add the attachment collection to the grid below. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;&lt;IMG height=460 src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_QBE.PNG" width=416 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_QBE.PNG"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;This generates the following SQL:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;SELECT Issues.Title, Issues.Attachments&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;FROM Issues;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;The query returns the collection of Attachments.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;&lt;IMG height=71 src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_QBE_Datasheet%20Collection.PNG" width=463 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_QBE_Datasheet%20Collection.PNG"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;If you add the Attachment.FileName to the query you get the expanded results set. Here is the SQL:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Verdana"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;SELECT Issues.Title, Issues.Attachments.FileName&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM Issues;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;The datasheet now returns the expanded results:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;IMG height=121 src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_QBE_Datasheet%20Expanded.PNG" width=510 border=0 mce_src="http://clintc.officeisp.net/Blogs/2006/24%20-%20Images/Attachment_QBE_Datasheet%20Expanded.PNG"&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;The collection is exposed through DAO so that you can modify and update it. Here is a short code sample:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;Private Sub cmdAddImage_Click()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;Dim rsEmployees As DAO.Recordset2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;Dim rsPictures As DAO.Recordset2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;Set db = CurrentDb&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in" mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;' Get the parent recordset&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;Set rsEmployees = Me.Recordset&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in" mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;'Put the parent record into edit mode&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;rsEmployees.Edit&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;'Get the attachment recordset&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;Set rsPictures = rsEmployees.Fields("AttachmentCell").Value&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;'Set first attachment to loaded picture&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;rsPictures.Edit&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;rsPictures.Fields("FileData").LoadFromFile ("C:\FileName.jpg")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;rsPictures.Update&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;MsgBox "Picture added"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;' Update the parent record&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;rsEmployees.Update&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Courier New"&gt;End Sub&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;The attachment data-type is available in ACCDB files and link tables to WSS lists. It is not available for MDB and ADP databases. We didn’t expand the 2GB limit for Access databases. If you think you will have lots of data in your app break out the attachment column into its own database and use a link table to join it with the table. &lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;Next Time&lt;/H2&gt;
&lt;P&gt;In the next big post, I'll look at Filtering and Grouping.&amp;nbsp; In the meantime, I'll have a smaller post about searching in the navigation pane.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=583584" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/access/archive/tags/Access+2007/default.aspx">Access 2007</category><category domain="http://blogs.msdn.com/access/archive/tags/Report/default.aspx">Report</category><category domain="http://blogs.msdn.com/access/archive/tags/Form/default.aspx">Form</category><category domain="http://blogs.msdn.com/access/archive/tags/Style/default.aspx">Style</category><category domain="http://blogs.msdn.com/access/archive/tags/Graphic/default.aspx">Graphic</category><category domain="http://blogs.msdn.com/access/archive/tags/Access+14/default.aspx">Access 14</category></item></channel></rss>