 




<?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>IT Answers &#187; Access 2007 alerts</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/access-2007-alerts/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 06:08:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Calculate Business Hours</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/calculate-business-hours/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/calculate-business-hours/#comments</comments>
		<pubDate>Wed, 19 May 2010 06:48:36 +0000</pubDate>
		<dc:creator>Bostic86</dc:creator>
				<category><![CDATA[Access 2007]]></category>
		<category><![CDATA[Access 2007 alerts]]></category>
		<category><![CDATA[Microsoft Access]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I found a VBA code that fits the program I&#8217;m trying to create but I&#8217;m having a difficult time locating the 12-1 lunch break so I can make it straight time. Listed below is the code. Function CalculateDownTime(StartTime As Date, EndTime As Date) As Double Dim Result As Double, EndDay As Date Result = 0 [...]]]></description>
				<content:encoded><![CDATA[<p>I found a VBA code that fits the program I&#8217;m trying to create but I&#8217;m having a difficult time locating the 12-1 lunch break so I can make it straight time. Listed below is the code. Function CalculateDownTime(StartTime As Date, EndTime As Date) As Double Dim Result As Double, EndDay As Date Result = 0 If Not IsWorkTime(StartTime) Then Call Move2Next(StartTime) Do While StartTime &lt; EndTime EndDay = CalculateEnd(StartTime) If EndTime &lt; EndDay Then Result = Result + DateDiff(&#8220;n&#8221;, StartTime, EndTime) / 60 Else Result = Result + DateDiff(&#8220;h&#8221;, StartTime, EndDay) End If Call Move2Next(StartTime) Loop CalculateDownTime = Result End Function Sub Move2Next(DateX As Date) If Weekday(DateX, 2) = 5 And Hour(DateX) &gt;= 13 And Hour(DateX) &lt;= 23 Then DateX = DateSerial(year(DateX), Month(DateX), Day(DateX)) DateX = DateAdd(&#8220;d&#8221;, 3, DateX) DateX = DateAdd(&#8220;h&#8221;, 8, DateX) ElseIf Weekday(DateX, 2) = 6 Then DateX = DateSerial(year(DateX), Month(DateX), Day(DateX)) DateX = DateAdd(&#8220;d&#8221;, 2, DateX) DateX = DateAdd(&#8220;h&#8221;, 8, DateX) ElseIf (Weekday(DateX, 2) = 7) Or (Hour(DateX) &gt;= 13 And Hour(DateX) &lt;= 23) Then DateX = DateSerial(year(DateX), Month(DateX), Day(DateX)) DateX = DateAdd(&#8220;d&#8221;, 1, DateX) DateX = DateAdd(&#8220;h&#8221;, 8, DateX) ElseIf Hour(DateX) &gt;= 0 And Hour(DateX) &lt; 8 Then DateX = DateSerial(year(DateX), Month(DateX), Day(DateX)) DateX = DateAdd(&#8220;h&#8221;, 8, DateX) ElseIf Hour(DateX) &gt;= 8 And Hour(DateX) &lt; 13 Then DateX = DateSerial(year(DateX), Month(DateX), Day(DateX)) DateX = DateAdd(&#8220;h&#8221;, 13, DateX) End If End Sub Function IsWorkTime(DateX As Date) As Boolean If Weekday(DateX, 2) &lt;&gt; 6 And Weekday(DateX, 2) &lt;&gt; 7 And _ ((Hour(DateX) &gt;= 8 And Hour(DateX) &lt;= 11) Or (Hour(DateX) &gt;= 13 And Hour(DateX) &lt;= 16)) Then IsWorkTime = True Else IsWorkTime = False End If End Function Function CalculateEnd(DateX As Date) As Date Dim Result As Date Result = DateSerial(year(DateX), Month(DateX), Day(DateX)) If Hour(DateX) &lt; 12 Then Result = DateAdd(&#8220;h&#8221;, 12, Result) Else Result = DateAdd(&#8220;h&#8221;, 17, Result) End If CalculateEnd = Result End Function Any help would be appreiciated. Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/calculate-business-hours/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>E-mail Notification</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/e-mail-notification/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/e-mail-notification/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 05:02:23 +0000</pubDate>
		<dc:creator>Mightymrs</dc:creator>
				<category><![CDATA[Access 2007]]></category>
		<category><![CDATA[Access 2007 alerts]]></category>
		<category><![CDATA[Database alerts]]></category>
		<category><![CDATA[Email alerts]]></category>
		<category><![CDATA[Microsoft Access]]></category>
		<category><![CDATA[Microsoft Access 2007]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Can Access 2007 notifiy me by e-mail when someone has added or made a change to my data file?]]></description>
				<content:encoded><![CDATA[<p>Can Access 2007 notifiy me by e-mail when someone has added or made a change to my data file?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/e-mail-notification/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/16 queries in 0.024 seconds using memcached
Object Caching 392/425 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 08:32:01 -->