<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jenham.com.au</title>
	<atom:link href="http://jenham.com.au/feed/" rel="self" type="application/rss+xml" />
	<link>http://jenham.com.au</link>
	<description>custom database solutions</description>
	<lastBuildDate>Mon, 31 Oct 2011 23:57:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Lost time is never found again. Benjamin Franklin.</title>
		<link>http://jenham.com.au/2011/10/lost-time-is-never-found-again-benjamin-franklin/</link>
		<comments>http://jenham.com.au/2011/10/lost-time-is-never-found-again-benjamin-franklin/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 00:32:29 +0000</pubDate>
		<dc:creator>jeanette</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Time savers]]></category>

		<guid isPermaLink="false">http://jenham.com.au/?p=148</guid>
		<description><![CDATA[Here’s how David can save time formatting his church phone directory before printing. David’s church database has family contact details for the phone directory (printed and given out every year). This is an access database where names with contact details are typed in. There is a button to print the phone directory to Word. &#160; [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Here’s how David can save time formatting his church phone directory before printing.</p>
<p><a href="http://jenham.com.au/wp-content/uploads/2011/10/Clock-time-lost.png"><img class="size-full wp-image-161 alignleft" style="margin: 20px;" title="Time saving" src="http://jenham.com.au/wp-content/uploads/2011/10/Clock-time-lost.png" alt="" width="99" height="100" /></a><br />
David’s church database has family contact details for the phone directory<br />
(printed and given out every year).</p>
<p>This is an access database where names with contact details are typed in.<br />
There is a button to print the phone directory to Word.</p>
<p>&nbsp;</p>
<p>When the phone directory is opened in Word, David would like the family name and phone number in bold and a larger font.</p>
<p>How long will it take David to go through 500 names and contact details on 120 pages to bold and increase the font for each name and phone number?</p>
<p>What if the database automatically made the names and phone number bold and set the correct font so that when its printed in Word, the formatting is done correctly?</p>
<p>How much time would that save? Would you have more free time?</p>
<p>That’s how my skills in automating access databases can give you more free time.</p>
]]></content:encoded>
			<wfw:commentRss>http://jenham.com.au/2011/10/lost-time-is-never-found-again-benjamin-franklin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do you let your users recover from a mistake?</title>
		<link>http://jenham.com.au/2011/05/do-you-let-your-users-recover-from-a-mistake/</link>
		<comments>http://jenham.com.au/2011/05/do-you-let-your-users-recover-from-a-mistake/#comments</comments>
		<pubDate>Sun, 08 May 2011 05:06:24 +0000</pubDate>
		<dc:creator>jeanette</dc:creator>
				<category><![CDATA[Access Developers]]></category>

		<guid isPermaLink="false">http://jenham.com.au/?p=94</guid>
		<description><![CDATA[Do you have users who accidentally close the database when they try to close a form or report? You know, those users who click the red X (the one that closes the application) by mistake. They don&#8217;t have to be inconvenienced by a single click in the wrong place. Here’s how The picture above shows [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="size-medium wp-image-95 alignright" style="border: 0px none; margin: 5px;" title="Oops, I didn't mean to click there" src="http://jenham.com.au/wp-content/uploads/2011/05/Oops-300x85.png" alt="Recover from mistake" width="300" height="85" /></p>
<p>Do you have users who accidentally close the database when they try to close a form or report?</p>
<p>You know, those users who click the red X (the one that closes the application) by mistake. They don&#8217;t have to be inconvenienced by a single click in the wrong place.</p>
<h2><strong>Here’s how</strong></h2>
<div id="attachment_126" class="wp-caption aligncenter" style="width: 541px">
	<img class="size-full wp-image-126 " title="Hidden form short" src="http://jenham.com.au/wp-content/uploads/2011/05/Hidden-form-short3.png" alt="" width="541" height="239" />
	<p class="wp-caption-text">The hidden form</p>
</div>
<p>The picture above shows a hidden form I put in all the databases I build.</p>
<h2><strong>How does it work?</strong></h2>
<p>The form is called fhdnNoClose. It is the second form opened when the database opens (the 1<sup>st</sup> form is the startup form). fhdnNoClose opens in hidden mode.  When the user clicks the red X in the top right hand corner of the application, they see a message asking them if they want to exit the application.</p>
<h2><strong>Here’s how it works in my FruitMarket app</strong></h2>
<p>When users click the red X, they see a message asking for confirmation that they want to exit.</p>
<div id="attachment_123" class="wp-caption alignnone" style="width: 485px">
	<a href="http://jenham.com.au/wp-content/uploads/2011/05/Ask-before-exit2.png"><img class="size-full wp-image-123" title="Ask before exit" src="http://jenham.com.au/wp-content/uploads/2011/05/Ask-before-exit2.png" alt="" width="485" height="210" /></a>
	<p class="wp-caption-text">Asking the user if they want to exit the app.</p>
</div>
<p>If they click Cancel or press Esc, the app stays open. It they press Enter or click X or Exit, the app  closes.</p>
<h2><strong>Here’s the code.</strong></h2>
<pre><code>Private Sub cmdHide_Click()
Me.Visible = False
End Sub

Private Sub Form_Unload(Cancel As Integer)
'if developer checkbox ticked, just close this form
On Error GoTo Err_Handler
'Last mod date 24/04/2010
'tested
'allow developer to close this form
If Me.chkAllowDeveloperCloseThisForm = False Then
Cancel = True
If Me.chkAlreadyAskedToExit = True Then
Call CloseAndQuit
Else
DoCmd.OpenForm "frmAskBeforeExit", WindowMode:=acDialog
If Me.chkExitNow = True Then
Call CloseAndQuit
Else  'user clicked to cancel the exit
Cancel = True
End If
End If
End If

Exit_Handler:
Exit Sub
Err_Handler:
Select Case Err.Number
Case 2467  'The expression you entered refers to an object that is closed or doesn't exist.
Resume Next
Case Else
Debug.Print Err.Number, Err.Description, "Form_Unload", pstrMdl, Now
End Select
Resume Exit_Handler
End Sub</code></pre>
<p>CloseAndQuit is a public sub that restores any database-wide settings to the user’s own preferences that were in place before they opened the FruitMarket app, then closes the app.</p>
<p>The code on frmAskBeforeExit is very simple.</p>
<pre><code>Private Sub cmdCancel_Click()
On Error GoTo Err_Handler
'Last mod date 27/04/2010
'tested
DoCmd.Close acForm, Me.Name
Forms!fhdnNoClose.chkAlreadyAskedToExit = False
Exit_Handler:
Exit Sub
Err_Handler:
Debug.Print Err.Number, Err.Description, "cmdClose_Click", pstrMdl, Now
Resume Exit_Handler
End Sub

Private Sub cmdExit_Click()
On Error GoTo Err_Handler
'Last mod date 27/04/2010
'tested
Forms!fhdnNoClose.chkAlreadyAskedToExit = True
DoCmd.Close acForm, Me.Name

Exit_Handler:
Exit Sub
Err_Handler:
Debug.Print Err.Number, Err.Description, "cmdExit_Click", pstrMdl, Now
Resume Exit_Handler
End Sub</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://jenham.com.au/2011/05/do-you-let-your-users-recover-from-a-mistake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

