<?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 : Reference</title><link>http://blogs.msdn.com/access/archive/tags/Reference/default.aspx</link><description>Tags: Reference</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Using Hyperlinks in Access: Display As Hyperlink and Is Hyperlink</title><link>http://blogs.msdn.com/access/archive/2008/01/09/using-hyperlinks-in-access-display-as-hyperlink-and-is-hyperlink.aspx</link><pubDate>Wed, 09 Jan 2008 23:47:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7045395</guid><dc:creator>Steven Greenberg</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/access/comments/7045395.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=7045395</wfw:commentRss><description>&lt;p&gt;Those of you transitioning to Access 2007 from earlier versions of the product may notice the addition of a new property on the TextBox and ComboBox controls: &lt;strong&gt;Display As Hyperlink&lt;/strong&gt;. You may wonder how this new property interacts with the existing &lt;strong&gt;Is Hyperlink&lt;/strong&gt; property. I asked that question myself and found that the available documentation left some of my questions unanswered. So I&amp;#8217;m writing this blog post to hopefully fill that void. &lt;/p&gt;  &lt;p&gt;First of all, if you&amp;#8217;re happy with pre-Access 2007 behavior, just keep &lt;strong&gt;Display As Hyperlink&lt;/strong&gt; set to its default value, &amp;#8220;If Hyperlink&amp;#8221;. &lt;/p&gt;  &lt;p&gt;The key point about &lt;strong&gt;Display As Hyperlink&lt;/strong&gt; is this: You&amp;#8217;ll want to change &lt;strong&gt;Display As&lt;/strong&gt; &lt;strong&gt;Hyperlink&lt;/strong&gt; to &amp;#8220;Always&amp;#8221; if you want a combo box or text box to appear like a hyperlink even though it&amp;#8217;s actually tied to a text field not a hyperlink field. By doing this, you can leverage your users&amp;#8217; familiarity with the hyperlink look and feel and encourage them to click on a field in order to trigger some action.     &lt;br /&gt;You&amp;#8217;ll see examples of this technique throughout the Access 2007 templates. For instance, take a look at the ID field in the Contact List form in the Contacts template. Clicking on the ID field drills through to the Contact Details form for the specified row.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/access/WindowsLiveWriter/UsingHyperlinksinAccessDisplayAsHyperlin_9E8B/Contacts%20Template_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="160" alt="Contacts Template" src="http://blogs.msdn.com/blogfiles/access/WindowsLiveWriter/UsingHyperlinksinAccessDisplayAsHyperlin_9E8B/Contacts%20Template_thumb.png" width="608" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Setting &lt;strong&gt;Display As Hyperlink &lt;/strong&gt;causes the text in the ComboBox or TextBox to be colored blue and underlined. (Note that the hyperlink color doesn&amp;#8217;t have to be blue. It can be customized by clicking the Office button, going to the Advanced tab and clicking Web Options.) Additionally, when hovering over the control, the cursor turns from a pointer into a Hyperlink Hand. &lt;/p&gt;  &lt;p&gt;In the past, folks might have accomplished these goals by just setting &lt;strong&gt;Is Hyperlink&lt;/strong&gt; to &amp;#8220;Yes&amp;#8221;. But there are three subtle problems with this approach. One problem is that setting Is Hyperlink to &amp;#8220;Yes&amp;#8221; does not make the control&amp;#8217;s OnClick event keyboard-accessible. But setting Display As Hyperlink to &amp;#8220;Always&amp;#8221; means that when the user tabs to the control and hits the Enter key, any macros tied to an OnClick event will be run.&lt;/p&gt;  &lt;p&gt;The second problem with setting &lt;strong&gt;Is Hyperlink&lt;/strong&gt; to &amp;#8220;Yes&amp;#8221; is that it causes the control to be editable as if it&amp;#8217;s a hyperlink. So you can right click on the control and select &amp;#8220;Edit Hyperlink&amp;#8221;. This doesn&amp;#8217;t make sense when the field is not actually the hyperlink data type, and can lead to undesirable results.&lt;/p&gt;  &lt;p&gt;The third problem with setting &lt;strong&gt;Is Hyperlink&lt;/strong&gt; to &amp;#8220;Yes&amp;#8221; is that it causes the text of the control to be parsed as if its datatype is &amp;quot;hyperlink&amp;quot;. The hyperlink datatype in Access makes it possible for a single field to store and edit the display text, address, sub-address and tooltip for a hyperlink.This is done by storing the four values together in a single line of text with the values separated by hash signs. Specifically, the syntax is: DisplayText#Address#SubAddress#Tooltip. Putting aside the tooltip and sub address for the sake of example, when you set a hyperlink field to &lt;a href="http://www.microsoft.com"&gt;Microsoft&amp;#8217;s web site&lt;/a&gt;, that value is stored in the database as &amp;#8220;Microsoft&amp;#8217;s Website#&lt;a href="http://www.microsoft.com##&amp;rdquo;"&gt;http://www.microsoft.com##&amp;#8221;&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;So if you were unfortunate enough to set &lt;strong&gt;Is Hyperlink&lt;/strong&gt; to &amp;#8220;Yes&amp;#8221; on a field with values that have # signs in them, no text after the # sign would get displayed to the user. The user might enter &amp;#8220;200 Main Street, Apartment # 23&amp;#8221;. But when they looked back at the form, they would only see &amp;#8220;200 Main Street Apartment&amp;#8221;. Setting &lt;strong&gt;Display As Hyperlink&lt;/strong&gt; to &amp;#8220;Always&amp;#8221; does not cause the text of the field to be interpreted as an encoded hyperlink.&lt;/p&gt;  &lt;p&gt;One final note: There&amp;#8217;s an additional third option for &lt;strong&gt;Display As Hyperlink&lt;/strong&gt;: &amp;#8220;Screen Only&amp;#8221;. This is a great option to use when building the kinds of interactive reports which are now possible with Access 2007. You want the field to show up as a hyperlink on the screen, but when the report is printed out, there&amp;#8217;s no need to show the text as blue and underlined.     &lt;br /&gt;I hope this can help you understand a new property in Access 2007 that can be a bit confusing at first sight.     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Steven&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7045395" 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/Reference/default.aspx">Reference</category><category domain="http://blogs.msdn.com/access/archive/tags/Form/default.aspx">Form</category><category domain="http://blogs.msdn.com/access/archive/tags/Power+Tips/default.aspx">Power Tips</category></item><item><title>Office Online Community Submitted Database Templates</title><link>http://blogs.msdn.com/access/archive/2008/01/07/office-online-community-submitted-database-templates.aspx</link><pubDate>Tue, 08 Jan 2008 01:43:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7021133</guid><dc:creator>Zac Woodall</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/access/comments/7021133.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=7021133</wfw:commentRss><description>&lt;p&gt;Community submitted templates are now live on Office Online!!&amp;#160; &amp;quot;Er?&amp;quot;&amp;#160; You say, &amp;quot;what has this to do with me?&amp;quot;&amp;#160; I'm so glad you asked!!&lt;/p&gt;  &lt;p&gt;For the first time ever, there is now a Microsoft hosted service through which you can publish and share database applications with the community at large.&amp;#160; &lt;a href="http://office.microsoft.com/en-us/templates/FX100595491033.aspx?pid=CL100632981033"&gt;OfficeOnline&lt;/a&gt; is the template service that Microsoft uses to host its own document templates, and it is extremely popular, with &lt;strong&gt;2.8 million Access 2007 template downloads&lt;/strong&gt; for since Jan of 07.&amp;#160; For 2007 it has been opened up for publication by anyone who has access to the web.&amp;#160; Initially this support was just for Word, Excel, and PowerPoint, but as of mid-December you can now publish and share your own Access apps and samples through this service.&amp;#160; &lt;em&gt;Your&lt;/em&gt; templates get integrated directly into the system so users searching &lt;a href="http://office.microsoft.com/en-us/templates/CT101426161033.aspx"&gt;the site&lt;/a&gt; for a specific type of template will find your .accdt files right alongside the ones Microsoft has published.&amp;#160; Community submitted templates are marked with a little red pawn, so users can distinguish them from Microsoft supplied templates, and as with the ones Microsoft publishes, each community template has a rating of 1-5 stars set by the community, and a count of downloads. Here's an example:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/access/WindowsLiveWriter/OfficeOnlineCommunitySubmittedDatabaseTe_9EFB/wp_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="157" alt="wp" src="http://blogs.msdn.com/blogfiles/access/WindowsLiveWriter/OfficeOnlineCommunitySubmittedDatabaseTe_9EFB/wp_thumb.png" width="637" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;em&gt;NOTE: In order to be able to browse templates submitted by the community, you must choose moderate or unfiltered for the &amp;quot;Community Filter&amp;quot; at the left hand side of the page.&lt;/em&gt;&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/access/WindowsLiveWriter/OfficeOnlineCommunitySubmittedDatabaseTe_9EFB/CommunityFilter_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="157" alt="CommunityFilter" src="http://blogs.msdn.com/blogfiles/access/WindowsLiveWriter/OfficeOnlineCommunitySubmittedDatabaseTe_9EFB/CommunityFilter_thumb.png" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Publishing&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Now, I would love to be able to tell you that you can publish any application created with any version of Access to the site.&amp;#160; For the first iteration this isn't going to be the case.&amp;#160; For this version of the service, we've made an explicit decision to limit the functionality which can be uploaded in a template to features which don't automatically act on the user's behalf to edit or upload data, or to invoke functionality that would otherwise affect things outside the database.&amp;#160; We're intentionally beginning with a very tight set of restrictions, with the intention of testing the system out and understanding the space better before we turn on more advanced functionality.&lt;/p&gt;  &lt;p&gt;Here are the requirements for a template published to OfficeOnline:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Because we can open and scan the contents of them in code without booting Access on the server, the only template format we support is 2007's new .accdt format. &lt;/li&gt;    &lt;li&gt;Templates which use features that require the database to be enabled, including VBA, action queries, and macro actions which change data without prompting the user first will be rejected by the publication engine. &lt;/li&gt;    &lt;li&gt;Templates cannot have linked tables (if you think you'd need this in a template, I'd love too hear your scenario) &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;quot;What?&amp;quot; you say, &amp;quot;But I put VBA in everything!&amp;quot;&amp;#160; Yes.&amp;#160; I know you do.&amp;#160; We want to enable this scenario eventually, but not for this round.&amp;#160; There are a ton of really interesting things you can build and share on the template service which do not use code.&amp;#160; You still have the full power of Access tables, queries, and reports, and you can build user-interface logic in forms using Access 2007's new embedded macro technology.&amp;#160; Plus are a slew of interesting ways to slice data through the use of Queries and Expressions, and you can definitely build and share those.&amp;#160; Here are some ideas of things which might be interesting to publish as templates:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Pre-populated data (e.g. US zipcode table) &lt;/li&gt;    &lt;li&gt;Pre-designed Forms (e.g. a mahogany form background with polished wood buttons) &lt;/li&gt;    &lt;li&gt;Pre-formatted reports (e.g. report for Seiko Smart Label Printer 420) &lt;/li&gt;    &lt;li&gt;Complex many-table union query that returns the results of some really interesting thing &lt;/li&gt;    &lt;li&gt;A scaled down demo of your for-sale solution with a link back to your own website for the full version &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;You can even build a fully functional data tracking application should you so choose.&amp;#160; As an example, check out the cool little &lt;a href="http://office.microsoft.com/en-us/templates/TC300015601033.aspx"&gt;wedding tracking application&lt;/a&gt; built to help couples prepare for the big day by built by Abigail Short, one of the developers on the Access team (thank you Abigail!). &lt;/p&gt; &lt;img alt="Wedding Planner Template Screenshot" src="http://blogs.msdn.com/photos/accessblogimages/images/6800766/original.aspx" /&gt;   &lt;p&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;There are two key tools that everyone creating Access templates will want to take advantage of.&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;The &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=d96a8358-ece4-4bee-a844-f81856dceb67&amp;amp;displaylang=en"&gt;Access 2007 Developer Extensions&lt;/a&gt; - After you've installed it, you will have a Developer -&amp;gt; Save as Template menu item in the Office button.&amp;#160; This is by far the easiest way to create a template file. &lt;/li&gt;    &lt;li&gt;&lt;iframe style="border-right: #dde5e9 1px solid; padding-right: 0px; border-top: #dde5e9 1px solid; padding-left: 0px; float: right; padding-bottom: 0px; margin: 3px; border-left: #dde5e9 1px solid; width: 240px; padding-top: 0px; border-bottom: #dde5e9 1px solid; height: 66px; background-color: #ffffff" marginwidth="0" marginheight="0" src="http://cid-202fb0f0b974bfeb.skydrive.live.com/embedrowdetail.aspx/Downloads/TemplateValidator.zip" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;The Access dev team's own Scott Gardner has put together a command line tool that you can run against your .accdt to pre-verify that it meets the rules imposed by OfficeOnline (thank you Scott!).&amp;#160; Just run this tool from cmd.exe, passing in the location of your .accdt file and it will give you the OK, or a list of issues that will cause OfficeOnline to reject it.&amp;#160; The tool requires that &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=10CC340B-F857-4A14-83F5-25634C3BF043&amp;amp;displaylang=en"&gt;.Net 3.0&lt;/a&gt; be installed on your system. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;strong&gt;Submitting&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Here's what you need to do to get your template submitted to Office Online:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Choose &amp;quot;Submit a Template&amp;quot; from the links on the left hand side of the &lt;a href="http://office.microsoft.com/en-us/templates/default.aspx"&gt;Office Online template page&lt;/a&gt; (this can be a little hard to&amp;#160; pick out of all the other links, see the picture to the right for a pointer). &lt;/li&gt;    &lt;li&gt;Follow the submission steps &lt;/li&gt;    &lt;li&gt;72 hrs. or so later your template should be live &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/access/WindowsLiveWriter/OfficeOnlineCommunitySubmittedDatabaseTe_9EFB/submit_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="158" alt="submit" src="http://blogs.msdn.com/blogfiles/access/WindowsLiveWriter/OfficeOnlineCommunitySubmittedDatabaseTe_9EFB/submit_thumb.png" width="332" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;br /&gt;  &lt;p&gt;&lt;strong&gt;Reference&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;You can find some information about Access 2007 templates here: &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://office.microsoft.com/search/redir.aspx?assetid=HA102188681033&amp;amp;QueryID=I4bCpp5av0&amp;amp;respos=11&amp;amp;rt=2&amp;amp;pid=CH102222081033"&gt;Introduction to the Access 2007 Developer Extensions and Runtime&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;Blog: &lt;a href="http://blogs.msdn.com/access/archive/2007/08/06/access-2007-template-accdt-files.aspx"&gt;Access 2007 Template (.accdt) files&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;a href="http://www.mannpublishing.com/partner.aspx?PID=3970823"&gt;&lt;img style="border-top-width: 0px; padding-right: 10px; border-left-width: 0px; float: left; border-bottom-width: 0px; border-right-width: 0px" src="http://blogs.msdn.com/photos/accessblogimages/images/6766411/original.aspx" /&gt;&lt;/a&gt;   &lt;p&gt;If you're looking for a more complete reference, we've arranged a deal with with Rational Press for blog readers to have a &lt;a href="http://www.mannpublishing.com/partner.aspx?PID=3970823"&gt;35% discount on their title &amp;quot;The Rational Guide to Microsoft&lt;span class="style1"&gt;&amp;#174;&lt;/span&gt; Office Access 2007 Templates&amp;quot;&lt;/a&gt; by yours truly.&amp;#160; The book assumes that readers will have the need to create safe templates like the ones required to upload to Office Online, and I include a detailed explanation of how to create interesting codeless solutions.&amp;#160; &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7021133" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/access/archive/tags/Community/default.aspx">Community</category><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/Template/default.aspx">Template</category><category domain="http://blogs.msdn.com/access/archive/tags/Reference/default.aspx">Reference</category></item><item><title>New Ribbon Reference: RibbonX for Dummies</title><link>http://blogs.msdn.com/access/archive/2008/01/06/new-ribbon-reference-ribbonx-for-dummies.aspx</link><pubDate>Sun, 06 Jan 2008 05:12:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6999106</guid><dc:creator>Zac Woodall</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/access/comments/6999106.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=6999106</wfw:commentRss><description>&lt;p&gt;&lt;a style="float: left" href="http://www.amazon.com/dp/B000X16Q04"&gt;&lt;img height="115" alt="RibbonX For Dummies (For Dummies (Computer/Tech))" src="http://ecx.images-amazon.com/images/I/31mj%2BymczLL._AA115_.jpg" width="115" border="0" /&gt;&lt;/a&gt;Those of you out there building custom Ribbon UI for Access/Office might be interested to know that the Dummies folks have recently released a guide for building Ribbon UI titled (as you might expect) &amp;quot;&lt;a href="http://www.amazon.com/dp/B000X16Q04"&gt;RibbonX for Dummies&lt;/a&gt;&amp;quot;.&amp;#160; The book is a general guide to building Ribbon XML, and it does include a section specifically on Access 2007.&amp;#160; &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6999106" 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/Ribbon/default.aspx">Ribbon</category><category domain="http://blogs.msdn.com/access/archive/tags/Reference/default.aspx">Reference</category></item><item><title>Teaching users to fish--an online intro to queries</title><link>http://blogs.msdn.com/access/archive/2007/12/03/teaching-users-to-fish-an-online-intro-to-queries.aspx</link><pubDate>Tue, 04 Dec 2007 09:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6649469</guid><dc:creator>Clint Covington</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/access/comments/6649469.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=6649469</wfw:commentRss><description>&lt;P&gt;Does this sound familiar? Smart Access user builds a cool database to help co-workers do their jobs more efficiently. Co-workers sing praises and advocate a raise for&amp;nbsp;the smart Access hero. A few weeks later, end users ask hero to help create a couple queries and reports to answer more complex business questions. Hero has three choices:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Tell them to get lost and lose new-found hero status.&lt;/LI&gt;
&lt;LI&gt;Write the query for end users and thus, assume new roll&amp;nbsp;as team Access developer.&lt;/LI&gt;
&lt;LI&gt;Teach end users how to fish.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;I’m a big fan of teaching people to fish.&lt;/P&gt;
&lt;P&gt;The end user assistance team has been hard at work improving the most commonly&amp;nbsp;accessed help&amp;nbsp;topics. They recently updated &lt;A class="" href="http://office.microsoft.com/en-us/access/HA102098921033.aspx" mce_href="http://office.microsoft.com/en-us/access/HA102098921033.aspx"&gt;Introduction to queries&lt;/A&gt; with new content and the following five wildly popular demos for visual learners:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Look at a subset of the data in a table&lt;/LI&gt;
&lt;LI&gt;Review data from more than one table simultaneously&lt;/LI&gt;
&lt;LI&gt;Ask variations of a question by using parameters with a query&lt;/LI&gt;
&lt;LI&gt;Make calculations based on your data&lt;/LI&gt;
&lt;LI&gt;Look at summarized or aggregate data&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Next time your co-workers want you to help them answer a business question with a query—send them a link to the help topic and teach them to fish. They will feel empowered with new-found technical chops. &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6649469" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/access/archive/tags/Reference/default.aspx">Reference</category><category domain="http://blogs.msdn.com/access/archive/tags/Power+Tips/default.aspx">Power Tips</category></item><item><title>AccessJunkie's updated 2007 content</title><link>http://blogs.msdn.com/access/archive/2007/11/29/accessjunkie-s-updated-2007-content.aspx</link><pubDate>Thu, 29 Nov 2007 22:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6601730</guid><dc:creator>Zac Woodall</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/access/comments/6601730.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=6601730</wfw:commentRss><description>&lt;P&gt;Our very own Access Junkie, Jeff Conrad,&amp;nbsp;has updated his 2007 Help links and FAQ.&amp;nbsp; These are great resources for 2007 info.&amp;nbsp; Jeff is an engineer on our test team who is very active in the newsgroups, and he's tried to capture answers to the questions that he sees asked most commonly by the community at large.&amp;nbsp; Here are some pointers:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;2007 Help Links: &lt;A href="http://accessjunkie.com/helplinks2007.aspx"&gt;http://accessjunkie.com/helplinks2007.aspx&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;2007 FAQ: &lt;A href="http://accessjunkie.com/faq2007.aspx"&gt;http://accessjunkie.com/faq2007.aspx&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;EM&gt;For those who are curious, Jeff is hosting this site on &lt;/EM&gt;&lt;A class="" href="http://office.microsoft.com/en-us/officelive/default.aspx" mce_href="http://office.microsoft.com/en-us/officelive/default.aspx"&gt;&lt;EM&gt;OfficeLive&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt;.&amp;nbsp; If you're of a mind, you can create your own OfficeLive site for free, complete with a custom domain name like Jeff has.&lt;/EM&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6601730" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/access/archive/tags/Community/default.aspx">Community</category><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/Reference/default.aspx">Reference</category></item><item><title>Access 2003 --&amp;gt; Access 2007 UI Guide</title><link>http://blogs.msdn.com/access/archive/2007/10/04/access-2003-access-2007-ui-guide.aspx</link><pubDate>Fri, 05 Oct 2007 01:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5279467</guid><dc:creator>Zac Woodall</dc:creator><slash:comments>15</slash:comments><comments>http://blogs.msdn.com/access/comments/5279467.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=5279467</wfw:commentRss><description>&lt;P&gt;The Access&amp;nbsp;help team has just finished up our new interactive guide for users moving from 2003 to 2007.&amp;nbsp; &lt;A class="" href="http://office.microsoft.com/en-us/access/HA102388991033.aspx" mce_href="http://office.microsoft.com/en-us/access/HA102388991033.aspx"&gt;The guide&lt;/A&gt; is a flash based tutorial which allows you to select a command from the 2003 Access UI, and then see where it has moved to in the 2007 ribbon.&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5279467" 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/Ribbon/default.aspx">Ribbon</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/Reference/default.aspx">Reference</category><category domain="http://blogs.msdn.com/access/archive/tags/Power+Tips/default.aspx">Power Tips</category></item><item><title>Using VBA code to open a file stored in the new Access 2007 Attachment field</title><link>http://blogs.msdn.com/access/archive/2007/08/30/using-vba-code-to-open-a-file-stored-in-the-new-access-2007-attachment-field.aspx</link><pubDate>Thu, 30 Aug 2007 20:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4650547</guid><dc:creator>James K. Rivera</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/access/comments/4650547.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=4650547</wfw:commentRss><description>&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Someone asked me about using the Attachment data type in Access 2007 for a specific task. They wanted to use it as a simple data type where it would only be used to hold 1 file per record, and they wanted to be able to open the file in an external application using a button on a form instead of using the Attachment control on a form.&amp;nbsp; Given these constraints, I was created a simple VBA function for doing just that:&lt;/SPAN&gt; &lt;BR&gt;&lt;BR&gt;&lt;CODE&gt;Public Function OpenFirstAttachmentAsTempFile(ByRef rstCurrent As DAO.Recordset, ByVal strFieldName As String) As String &lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim rstChild As DAO.Recordset2&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fldAttach As DAO.Field2&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim strFilePath As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim strTempDir As String&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strTempDir = Environ("Temp") ' Get the Temp directory from the environment variable.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Right(strTempDir, 1) &amp;lt;&amp;gt; "\" Then strTempDir = strTempDir &amp;amp; "\" ' Make sure the path always ends with a backslash.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set rstChild = rstCurrent.Fields(strFieldName).Value ' the .Value for a complex field returns the underlying recordset.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strFilePath = strTempDir &amp;amp; rstChild.Fields("FileName").Value ' Append the name of the first (and only) attached file to temp dir.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Dir(strFilePath) &amp;lt;&amp;gt; "" Then ' the file already exists--delete it first.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBA.SetAttr strFilePath, vbNormal ' remove any file attributes (e.g. read-only) that would block the kill command.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBA.Kill strFilePath ' delete the file.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set fldAttach = rstChild.Fields("FileData") ' The binary data of the file.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttach.SaveToFile strFilePath&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rstChild.Close ' cleanup&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBA.Shell "Explorer.exe " &amp;amp; Chr(34) &amp;amp; strFilePath &amp;amp; Chr(34), vbNormalFocus ' Use Windows Explorer to launch&amp;nbsp; the file.&lt;BR&gt;&lt;BR&gt;End Function 'OpenFirstAttachmentAsTempFile&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;/CODE&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Then I wrote this function just to test it in a database that has a Table1 with an Attachment field named "Files" in which I had already placed a file: &lt;/SPAN&gt;&lt;BR&gt;&lt;BR&gt;&lt;CODE&gt;Public Function TestOpenFirstAttachmentAsTempFile()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dbs As DAO.Database&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim rst As DAO.Recordset&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Const strTable = "Table1"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Const strField = "Files" ' Attachment field in Table1&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set dbs = CurrentDb&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set rst = dbs.OpenRecordset(strTable)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'rst.MoveNext ' Uncomment this line to go to the 2nd row in the Table.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpenFirstAttachmentAsTempFile rst, strField&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rst.Close&lt;BR&gt;End Function &lt;/CODE&gt;&lt;BR&gt;&lt;BR&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;By using the VBA.Shell command with Explorer.exe, the file will be opened just as if you double clicked it from Windows Explorer!&lt;BR&gt;&lt;BR&gt;See my &lt;A href="http://blogs.msdn.com/access/archive/2007/08/24/adding-removing-and-saving-files-from-the-new-attachment-field-in-access-2007.aspx" mce_href="http://blogs.msdn.com/access/archive/2007/08/24/adding-removing-and-saving-files-from-the-new-attachment-field-in-access-2007.aspx"&gt;previous blog post about attachments&lt;/A&gt; for more information about accessing attachments from DAO.&lt;/SPAN&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4650547" 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/Reference/default.aspx">Reference</category><category domain="http://blogs.msdn.com/access/archive/tags/Attachment/default.aspx">Attachment</category><category domain="http://blogs.msdn.com/access/archive/tags/Code/default.aspx">Code</category><category domain="http://blogs.msdn.com/access/archive/tags/Power+Tips/default.aspx">Power Tips</category></item><item><title>Access 2007 Reports Demo</title><link>http://blogs.msdn.com/access/archive/2007/08/23/access-2007-reports-demo.aspx</link><pubDate>Thu, 23 Aug 2007 19:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4527979</guid><dc:creator>Zac Woodall</dc:creator><slash:comments>10</slash:comments><comments>http://blogs.msdn.com/access/comments/4527979.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=4527979</wfw:commentRss><description>I can't resist doing a quick post to let you all know about the new report &lt;A class="" href="http://office.microsoft.com/en-us/access/HA102374121033.aspx" mce_href="http://office.microsoft.com/en-us/access/HA102374121033.aspx"&gt;demo&lt;/A&gt; that just got published to OfficeOnline.&amp;nbsp; This is a quick&amp;nbsp;little video, just a&amp;nbsp;few minutes long, which&amp;nbsp;gives a great overview of some of our new reporting features in 2007.&amp;nbsp; &lt;STRONG&gt;Big&lt;/STRONG&gt; thanks to my&amp;nbsp;engineers,&amp;nbsp;Steve Lesser, Abigail Short, and Nishant Kumar for helping me to make&amp;nbsp;these features&amp;nbsp;a reality!&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4527979" 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/Reference/default.aspx">Reference</category></item><item><title>Creating item templates for Ribbon customizations to use in Visual Studio</title><link>http://blogs.msdn.com/access/archive/2007/08/23/creating-item-templates-for-ribbon-customizations-to-use-in-visual-studio.aspx</link><pubDate>Thu, 23 Aug 2007 03:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4517817</guid><dc:creator>robcooper</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/access/comments/4517817.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=4517817</wfw:commentRss><description>&lt;P&gt;Despite my passion for all things related to code, I've always had a soft spot for UI that is exciting both in its "coolness" factor and visual appeal. Along those lines, one of my favorite new features in Access 2007 is &lt;A href="http://blogs.msdn.com/access/archive/2006/07/13/664757.aspx" mce_href="http://blogs.msdn.com/access/archive/2006/07/13/664757.aspx"&gt;Ribbon Extensibility&lt;/A&gt;. Writing the XML for a customization can be a bit of a bear, so here is a tip for making this easier.&lt;/P&gt;
&lt;P&gt;Before getting started with creating your own customizations, there are a few things you should have:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyId=15805380-F2C0-4B80-9AD1-2CB0C300AEF9&amp;amp;displaylang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyId=15805380-F2C0-4B80-9AD1-2CB0C300AEF9&amp;amp;displaylang=en"&gt;customUI.xsd&lt;/A&gt; schema for Ribbon extensibility&lt;/LI&gt;
&lt;LI&gt;Visual Studio or &lt;A href="http://msdn.microsoft.com/vstudio/express/vwd/" mce_href="http://msdn.microsoft.com/vstudio/express/vwd/"&gt;Visual Web Developer Express&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;With Visual Studio or one of the Express editions installed, you can create new file item templates that have portions of the XML of a customization already written. This involves creating the relevant XML and saving it to a particular directory, then modifying a file used by Visual Studio to tell it about the new file that you're adding.&lt;/P&gt;
&lt;P&gt;For example, let's say that you wanted to create a new Ribbon customization that started with a blank Ribbon with a single&amp;nbsp;tab with a single group. The XML for the customization might look something like:&lt;/P&gt;&lt;CODE&gt;&lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;customUI&lt;/FONT&gt; &lt;FONT color=red&gt;xmlns&lt;/FONT&gt;="&lt;FONT color=#0000ff&gt;http://schemas.microsoft.com/office/2006/01/customui&lt;/FONT&gt;"&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ribbon&lt;/FONT&gt; &lt;FONT color=red&gt;startFromScratch&lt;/FONT&gt;="&lt;FONT color=#0000ff&gt;true&lt;/FONT&gt;"&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;tabs&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;tab&lt;/FONT&gt; &lt;FONT color=red&gt;id&lt;/FONT&gt;="&lt;FONT color=#0000ff&gt;tab1&lt;/FONT&gt;"&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;BR&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;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;group&lt;/FONT&gt; &lt;FONT color=red&gt;id&lt;/FONT&gt;="&lt;FONT color=#0000ff&gt;group1&lt;/FONT&gt;"&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&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;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515&gt;group&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515&gt;tab&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515&gt;tabs&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ribbon&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515&gt;customUI&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;/CODE&gt; 
&lt;P&gt;Create a new XML file that uses this customization and save it as &lt;STRONG&gt;RibbonTabAndGroup.xml &lt;/STRONG&gt;in the following location: &lt;STRONG&gt;%PROGRAMFILES%Microsoft Visual Studio 8\Common7\IDE\NewFileItems&lt;/STRONG&gt;. Change the path to Visual Studio/Visual Web Developer Express if needed.&lt;/P&gt;
&lt;P&gt;Next, modify the &lt;STRONG&gt;NewFileItems.vsdir &lt;/STRONG&gt;file in the &lt;STRONG&gt;NewFileItems &lt;/STRONG&gt;directory to add the new item. For details about this file, check out &lt;A href="http://msdn2.microsoft.com/en-us/library/2sc7ft4a(vs.80).aspx" mce_href="http://msdn2.microsoft.com/en-us/library/2sc7ft4a(vs.80).aspx"&gt;this&lt;/A&gt; article in MSDN. Add the following record to the .vsdir file as the last line of the file.&lt;/P&gt;&lt;CODE&gt;RibbonTabAndGroup.xml| |RibbonX - Tab and Group|80|Ribbon customization for a blank Ribbon with one tab and one group|#14207|0|0|RibbonXTabGroup.xml&lt;/CODE&gt; 
&lt;P&gt;After you add the record to the file, close and re-open Visual Studio. Click the File menu, then choose New and choose File... You should now see the new item in the New File dialog as shown here.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://mwsxfq.bay.livefilestore.com/y1pKj33bsz53Th-JaFbccTH-SYpYPvkiqz5et4RRrE8JzaAgiLbyZOid_3qi6lnkhg4YBcpBGyMurzY2trGcg7tfqZ7Q6YnB-Jx/RibbonX%20NewFileItems.jpg" mce_src="http://mwsxfq.bay.livefilestore.com/y1pKj33bsz53Th-JaFbccTH-SYpYPvkiqz5et4RRrE8JzaAgiLbyZOid_3qi6lnkhg4YBcpBGyMurzY2trGcg7tfqZ7Q6YnB-Jx/RibbonX%20NewFileItems.jpg"&gt; &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4517817" 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/Ribbon/default.aspx">Ribbon</category><category domain="http://blogs.msdn.com/access/archive/tags/Reference/default.aspx">Reference</category><category domain="http://blogs.msdn.com/access/archive/tags/Code/default.aspx">Code</category></item><item><title>Set SharePoint List Template for Access Table</title><link>http://blogs.msdn.com/access/archive/2007/08/16/set-sharepoint-list-template-for-access-table.aspx</link><pubDate>Thu, 16 Aug 2007 21:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4419483</guid><dc:creator>Zac Woodall</dc:creator><slash:comments>27</slash:comments><comments>http://blogs.msdn.com/access/comments/4419483.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=4419483</wfw:commentRss><description>&lt;P&gt;&lt;BR&gt;There was an interesting&amp;nbsp;question in one of the other posts that I thought I'd answer here to reach the broader audience:&lt;/P&gt;
&lt;P&gt;Doug &lt;A class="" href="http://blogs.msdn.com/access/archive/2007/08/13/new-access-2007-articles-on-office-online.aspx#4402791" mce_href="http://blogs.msdn.com/access/archive/2007/08/13/new-access-2007-articles-on-office-online.aspx#4402791"&gt;said&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;If I export Northwind 2007 to WSS 3.0, the tables, like Customer, that contain 'Contact' type information get exported to an WSS 'Contact' content type. Very cool! Now you can view them in Outlook as a contact list.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;However, if I craft a table from hand with the exact same name, and the exact same fields, and export it, it is exported as a 'Custom' content type and I get no Outlook love.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;What magic is done in Northwind to make this happen? I really want to be able to do the same thing.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Great Question Doug!&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The answer is that Access keeps around a jet property named WSSTemplateID which enables us to correlate which tables have a built-in SharePoint list template equivalent.&amp;nbsp; Here's a list of IDs for the different types we support out of the box:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Contacts: 105&lt;/LI&gt;
&lt;LI&gt;Events:106&lt;/LI&gt;
&lt;LI&gt;Tasks: 107&lt;/LI&gt;
&lt;LI&gt;Issues: 1100&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;Here's a line of code that will set the WSS ID for contacts onto a table, so that when you try to publish it, you'll get the Contacts template in SharePoint.&amp;nbsp; Just replace Table1 with your table name, and you should be good!&amp;nbsp; &lt;/P&gt;
&lt;P&gt;CurrentDb.TableDefs("Table1").Properties.Append CurrentDb.CreateProperty("WSSTemplateID", dbInteger, "105", False)&lt;/P&gt;
&lt;P mce_keep="true"&gt;Thanks for the awesome question!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4419483" 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/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/access/archive/tags/Reference/default.aspx">Reference</category><category domain="http://blogs.msdn.com/access/archive/tags/Code/default.aspx">Code</category></item><item><title>New Access 2007 Articles on Office Online</title><link>http://blogs.msdn.com/access/archive/2007/08/13/new-access-2007-articles-on-office-online.aspx</link><pubDate>Mon, 13 Aug 2007 20:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4370283</guid><dc:creator>Zac Woodall</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/access/comments/4370283.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=4370283</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Arial size=2&gt;&lt;EM&gt;Thanks to &lt;A class="" href="http://accessjunkie.com/default.aspx" mce_href="http://accessjunkie.com/default.aspx"&gt;Jeff Conrad&lt;/A&gt; on the Access test team for this:&lt;/EM&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Office Online now has published four articles with material pulled from the &lt;I&gt;Microsoft Office Access 2007 Inside Out&lt;/I&gt; book. This enormous book, published by Microsoft Press, is co-authored by Access MVP John L. Viescas and recent Microsoft hire Jeff Conrad. You can find these new articles at the following links:&lt;BR&gt;&lt;BR&gt;Exploring a desktop Access 2007 database:&lt;BR&gt;&lt;A href="http://office.microsoft.com/en-us/access/HA102326851033.aspx" mce_href="http://office.microsoft.com/en-us/access/HA102326851033.aspx"&gt;http://office.microsoft.com/en-us/access/HA102326851033.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Create an Access 2007 database using templates:&lt;BR&gt;&lt;A href="http://office.microsoft.com/en-us/access/HA102326861033.aspx" mce_href="http://office.microsoft.com/en-us/access/HA102326861033.aspx"&gt;http://office.microsoft.com/en-us/access/HA102326861033.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Build forms in Access 2007 using design tools:&lt;BR&gt;&lt;A href="http://office.microsoft.com/en-us/access/HA102326841033.aspx" mce_href="http://office.microsoft.com/en-us/access/HA102326841033.aspx"&gt;http://office.microsoft.com/en-us/access/HA102326841033.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Automate applications with macros in Access 2007:&lt;BR&gt;&lt;A href="http://office.microsoft.com/en-us/access/HA102326831033.aspx" mce_href="http://office.microsoft.com/en-us/access/HA102326831033.aspx"&gt;http://office.microsoft.com/en-us/access/HA102326831033.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4370283" 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/Macro/default.aspx">Macro</category><category domain="http://blogs.msdn.com/access/archive/tags/Navigation+Pane/default.aspx">Navigation Pane</category><category domain="http://blogs.msdn.com/access/archive/tags/Template/default.aspx">Template</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/Reference/default.aspx">Reference</category><category domain="http://blogs.msdn.com/access/archive/tags/Form/default.aspx">Form</category></item><item><title>Formatting numbers into hexadecimal</title><link>http://blogs.msdn.com/access/archive/2007/08/09/formatting-numbers-into-hexadecimal.aspx</link><pubDate>Thu, 09 Aug 2007 03:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4300797</guid><dc:creator>robcooper</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/access/comments/4300797.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=4300797</wfw:commentRss><description>Even though class modules in VBA are not as powerful as their brethren in C++, C#, or VB.NET, I'm still a fan. Some time ago, I wrote an application which contained a class called ISearch and then subclasses which implemented this class using the &lt;A href="http://msdn2.microsoft.com/en-us/library/ms973861.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms973861.aspx"&gt;Implements&lt;/A&gt; keyword. For debugging, I thought it would be cool to print the address of the ISearch implementation object using the &lt;A href="http://support.microsoft.com/kb/199824" mce_href="http://support.microsoft.com/kb/199824"&gt;ObjPtr&lt;/A&gt; function. The ObjPtr function returns a Long that represents the memory address of an object variable. These numbers were a bit long for my liking, so to make them easier to read and understand, I wrote this function called FormatHex. This function wraps the Hex function in VBA but applies some formatting to it.&lt;BR&gt;&lt;BR&gt;&lt;CODE&gt;' -------------------------------------------------------------------------&lt;BR&gt;' Function : FormatHex&lt;BR&gt;' Purpose&amp;nbsp; : Formats a number in hexadecimal format&lt;BR&gt;' Arguments: lngValue - numeric value to format&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : nLength&amp;nbsp; - returned length of the string&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : strPrefix - hex prefix for the number - defaults to 0x&lt;BR&gt;' -------------------------------------------------------------------------&lt;BR&gt;Public Function FormatHex(lngValue As Long, _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Optional nLength As Byte = 8, _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Optional strPrefix As String = "0x") As String&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FormatHex = Trim(strPrefix &amp;amp; Replace(Format(Hex(lngValue), String(nLength, "@")), " ", "0"))&lt;BR&gt;&lt;BR&gt;End Function&lt;BR&gt;&lt;/CODE&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4300797" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/access/archive/tags/Reference/default.aspx">Reference</category><category domain="http://blogs.msdn.com/access/archive/tags/Code/default.aspx">Code</category></item><item><title>MkTree Function - Make sure that directories exist</title><link>http://blogs.msdn.com/access/archive/2007/08/01/mktree-function-make-sure-that-directories-exist.aspx</link><pubDate>Wed, 01 Aug 2007 03:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4155796</guid><dc:creator>robcooper</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/access/comments/4155796.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=4155796</wfw:commentRss><description>Recently, I wrote an application to manage files between directories and needed a function to make sure that the directory structure was the same between the source and destination files. VBA provides a function called MkDir which is used to create a directory, but it requires that the parent directory already exists. Here's a function called MkTree that will walk a path and create all of the directories in the tree for a given file/directory path.&lt;BR&gt;&lt;BR&gt;&lt;CODE&gt;' --------------------------------------------------------------------------&lt;BR&gt;' Function: MkTree&lt;BR&gt;' Purpose : Create directories for a given file name&lt;BR&gt;' Notes&amp;nbsp;&amp;nbsp; : MkTree "c:\a\b\c\file.txt" would create directories for c:\a\b\c&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MkTree "c:\a\b\c\" would create c:\a\b\c&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MkTree "c:\a\b\c" would create c:\a\b&lt;BR&gt;' --------------------------------------------------------------------------&lt;BR&gt;Public Sub MkTree(ByVal strFile As String)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' walk the file and make sure the paths exist&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim strRoot As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim strPath As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pos As Integer&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' get the root&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (InStr(strFile, ":\") = 2) Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRoot = Left(strFile, InStr(strFile, ":\") + 1)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf (InStr(strFile, "\\") = 1) Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRoot = Left(strFile, InStr(InStr(strFile, "\\") + 2, strFile, "\"))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Invalid Root Directory", vbExclamation&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Exit Sub&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = InStr(Len(strRoot) + 1, strFile, "\")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; While (pos &amp;gt; 0)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strPath = Left(strFile, pos)&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Create the directory&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On Error Resume Next&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MkDir strPath&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Assert Err = 0 Or Err = 75&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On Error GoTo 0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = InStr(pos + 1, strFile, "\")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wend&lt;BR&gt;End Sub&lt;/CODE&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4155796" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/access/archive/tags/Reference/default.aspx">Reference</category><category domain="http://blogs.msdn.com/access/archive/tags/Code/default.aspx">Code</category></item><item><title>Easing the transition from Access 2003 to 2007</title><link>http://blogs.msdn.com/access/archive/2007/07/12/easing-the-transition-from-access-2003-to-2007.aspx</link><pubDate>Thu, 12 Jul 2007 11:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3834181</guid><dc:creator>Erik Rucker</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/access/comments/3834181.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=3834181</wfw:commentRss><description>&lt;P&gt;One of our Access MVPs, Oliver Stohr, has just released his new web site focusing on helping users make the switch from Access 2003 to Access 2007.&amp;nbsp; Oli has some good tutorial content which should be useful for those of you who are just getting started with Access 2007, and also check out his blog.&amp;nbsp; He’s been working with some members of the Access team producing content for Access Advisor Magazine.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;?XML:NAMESPACE PREFIX = O /&gt;&lt;O:P&gt;&amp;nbsp;&lt;/O:P&gt;&lt;A href="http://www.access-freak.com/" mce_href="http://www.access-freak.com/"&gt;http://www.access-freak.com/&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3834181" 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/Reference/default.aspx">Reference</category></item><item><title>Setting Rich Text Formatting Programmatically</title><link>http://blogs.msdn.com/access/archive/2007/07/02/setting-rich-text-formatting-programmatically.aspx</link><pubDate>Mon, 02 Jul 2007 16:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3663933</guid><dc:creator>Erik Rucker</dc:creator><slash:comments>8</slash:comments><comments>http://blogs.msdn.com/access/comments/3663933.aspx</comments><wfw:commentRss>http://blogs.msdn.com/access/commentrss.aspx?PostID=3663933</wfw:commentRss><description>&lt;P&gt;Someone asked about setting the formatting for rich text programmatically, and if there was an object model for the text formatting.&amp;nbsp; There isn't, but the text is simply HTML, so it isn't hard to do through code.&amp;nbsp; Here's a trick to see how our text is formatted and to update the HTML manually:&amp;nbsp; &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Copy/Paste the text box that has Rich Text&lt;/LI&gt;
&lt;LI&gt;Select the text box&lt;/LI&gt;
&lt;LI&gt;Change the Text Format property on the Data tab to Plain Text&lt;/LI&gt;
&lt;LI&gt;Select a different property to commit the property change and click OK to the warning&lt;/LI&gt;
&lt;LI&gt;Browse the form and edit the data in the Rich Text box&lt;/LI&gt;&lt;/OL&gt;Now you can see the HTML we generate and modify it directly. &lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3663933" 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/Reference/default.aspx">Reference</category><category domain="http://blogs.msdn.com/access/archive/tags/Power+Tips/default.aspx">Power Tips</category></item></channel></rss>