<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: The Secret Life of Find Mode: Dates and Times</title>
	<link>http://sixfriedrice.com/wp/find-mode-dates-and-times/</link>
	<description>smart business solutions</description>
	<pubDate>Thu, 04 Dec 2008 20:13:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Jenifer Bracewell</title>
		<link>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-1016</link>
		<dc:creator>Jenifer Bracewell</dc:creator>
		<pubDate>Thu, 24 Apr 2008 15:04:56 +0000</pubDate>
		<guid>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-1016</guid>
		<description>Good article! My issue is that everything has to work in IWP! I

I've found that in IWP I have to use the Enter Find Mode / Set field method for it to perform finds reliably. When I try to set a field to something like ..//, FM gives me an error [ie. This number could not be evaluated.]. 

What I need is to find all records prior to the current date. And like Wade's, all this has to run by the click of a button. Any ideas on how to do this in IWP? 

Thanks</description>
		<content:encoded><![CDATA[<p>Good article! My issue is that everything has to work in IWP! I</p>
<p>I&#8217;ve found that in IWP I have to use the Enter Find Mode / Set field method for it to perform finds reliably. When I try to set a field to something like ..//, FM gives me an error [ie. This number could not be evaluated.]. </p>
<p>What I need is to find all records prior to the current date. And like Wade&#8217;s, all this has to run by the click of a button. Any ideas on how to do this in IWP? </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff Coffey</title>
		<link>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-930</link>
		<dc:creator>Geoff Coffey</dc:creator>
		<pubDate>Thu, 03 Jan 2008 21:20:22 +0000</pubDate>
		<guid>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-930</guid>
		<description>@wade: You can use &lt;code&gt;//&lt;/code&gt; for the current date and &lt;code&gt;..//&lt;/code&gt; for everything &lt;em&gt;up to&lt;/em&gt; the current date. But I don't know of a shortcut for "just this month". 

But in a case like this, you can always revert to the more explicit method. For instance, use a script like this:

&lt;pre&gt;&lt;code&gt;Enter Find Mode []
Set Field [My Date Field, Month(Get(CurrentDate)) &#038; "/" &#038; Year(Get(CurrentDate))]
Perform Find []&lt;/code&gt;&lt;/pre&gt;

In this example, I use FileMaker's calculation engine to construct a find that looks like this: &lt;code&gt;1/2008&lt;/code&gt; which means "Any day in January of this year." 

Hope this helps :)

Geoff</description>
		<content:encoded><![CDATA[<p>@wade: You can use <code>//</code> for the current date and <code>..//</code> for everything <em>up to</em> the current date. But I don&#8217;t know of a shortcut for &#8220;just this month&#8221;. </p>
<p>But in a case like this, you can always revert to the more explicit method. For instance, use a script like this:</p>
<pre><code>Enter Find Mode []
Set Field [My Date Field, Month(Get(CurrentDate)) &#038; "/" &#038; Year(Get(CurrentDate))]
Perform Find []</code></pre>
<p>In this example, I use FileMaker&#8217;s calculation engine to construct a find that looks like this: <code>1/2008</code> which means &#8220;Any day in January of this year.&#8221; </p>
<p>Hope this helps <img src='http://sixfriedrice.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Geoff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wade Wofford</title>
		<link>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-929</link>
		<dc:creator>Wade Wofford</dc:creator>
		<pubDate>Thu, 03 Jan 2008 19:59:39 +0000</pubDate>
		<guid>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-929</guid>
		<description>This is great - thanks for the valuable community service!  

Is there a way to pull any record dated/changed in the *current* month.  So if I ran a report on January 12th, it would give me Jan 1 &#62; 12 (of the current year)...and if I ran the same report on January 31st, it would give me the entire month...

If the above is not possible, I could always pull it by all values in the past 31 days.  I'm trying to avoid this, as a report ran on Feb.28 gives me some of January.

Bear in mind, this list-pull will be part of a script, that's connected to a button.  Some folks that I work with who don't know how to use FM at all will use this script by pressing the button that automates it.

Any ideas on how to get these results, without them having to type in anything?</description>
		<content:encoded><![CDATA[<p>This is great - thanks for the valuable community service!  </p>
<p>Is there a way to pull any record dated/changed in the *current* month.  So if I ran a report on January 12th, it would give me Jan 1 &gt; 12 (of the current year)&#8230;and if I ran the same report on January 31st, it would give me the entire month&#8230;</p>
<p>If the above is not possible, I could always pull it by all values in the past 31 days.  I&#8217;m trying to avoid this, as a report ran on Feb.28 gives me some of January.</p>
<p>Bear in mind, this list-pull will be part of a script, that&#8217;s connected to a button.  Some folks that I work with who don&#8217;t know how to use FM at all will use this script by pressing the button that automates it.</p>
<p>Any ideas on how to get these results, without them having to type in anything?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Macklam</title>
		<link>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-919</link>
		<dc:creator>Mark Macklam</dc:creator>
		<pubDate>Fri, 21 Dec 2007 00:40:55 +0000</pubDate>
		<guid>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-919</guid>
		<description>Slow to reply to your answer as I have been rather ill. Thanks very much. Right on the 'mark' for me. This will be very useful.</description>
		<content:encoded><![CDATA[<p>Slow to reply to your answer as I have been rather ill. Thanks very much. Right on the &#8216;mark&#8217; for me. This will be very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff Coffey</title>
		<link>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-900</link>
		<dc:creator>Geoff Coffey</dc:creator>
		<pubDate>Fri, 07 Dec 2007 06:49:23 +0000</pubDate>
		<guid>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-900</guid>
		<description>@mark: I think the situation you describe calls for scripting. I don't believe there's a way to do it with a simple Find without adding unnecessary clutter to your table (and possibly dealing with poor performance).

Luckily, it's easy to do with a script. You will take three steps:

1. Find the transactions for a particular month.
2. Locate the last of the found transactions.
3. Remove all the others from your found set.

The find portion is fairly simple, using the techniques describe in this article. To find transactions in March, 2007, search your Transaction Date field for &lt;code&gt;3/*/2007&lt;/code&gt;.

To locate the most recent of the transactions, just sort them descending by creation timestamp or transaction date, or whatever is appropriate.

Finally, you can use the Omit Multiple command to remove the older transactions from the found set.

Here's a sample script that does these things. This version prompts the user to enter a month and year, but it could be written to use a script parameter, hard coded date, or whatever is appropriate for your situation.

&lt;pre&gt;
&lt;code&gt;Show Custom Dialog [ "Month"; "Enter the month and year to find."; My Table::Global Month; My Table::Global Year ]
Enter Find Mode
Set Field [Transaction Date; "My Table::Global Month &#038; "/*/" &#038; My Table::Global Year]
Set Error Capture [On]
Perform Find
Set Error Capture [Off]
Sort Records [Restore, No Dialog]
Go to Record/Request/Page [2]
Omit Multiple [Get(FoundCount) - 1]&lt;/code&gt;
&lt;/pre&gt;

If you run this script, or a variant of it, you'll see that FileMaker carries out all the steps very quickly, and shows your results.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>@mark: I think the situation you describe calls for scripting. I don&#8217;t believe there&#8217;s a way to do it with a simple Find without adding unnecessary clutter to your table (and possibly dealing with poor performance).</p>
<p>Luckily, it&#8217;s easy to do with a script. You will take three steps:</p>
<p>1. Find the transactions for a particular month.<br />
2. Locate the last of the found transactions.<br />
3. Remove all the others from your found set.</p>
<p>The find portion is fairly simple, using the techniques describe in this article. To find transactions in March, 2007, search your Transaction Date field for <code>3/*/2007</code>.</p>
<p>To locate the most recent of the transactions, just sort them descending by creation timestamp or transaction date, or whatever is appropriate.</p>
<p>Finally, you can use the Omit Multiple command to remove the older transactions from the found set.</p>
<p>Here&#8217;s a sample script that does these things. This version prompts the user to enter a month and year, but it could be written to use a script parameter, hard coded date, or whatever is appropriate for your situation.</p>
<pre>
<code>Show Custom Dialog [ "Month"; "Enter the month and year to find."; My Table::Global Month; My Table::Global Year ]
Enter Find Mode
Set Field [Transaction Date; "My Table::Global Month &#038; "/*/" &#038; My Table::Global Year]
Set Error Capture [On]
Perform Find
Set Error Capture [Off]
Sort Records [Restore, No Dialog]
Go to Record/Request/Page [2]
Omit Multiple [Get(FoundCount) - 1]</code>
</pre>
<p>If you run this script, or a variant of it, you&#8217;ll see that FileMaker carries out all the steps very quickly, and shows your results.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Macklam</title>
		<link>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-899</link>
		<dc:creator>Mark Macklam</dc:creator>
		<pubDate>Fri, 07 Dec 2007 06:30:24 +0000</pubDate>
		<guid>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-899</guid>
		<description>I am still a novice to using FileMaker, having only used it on and off for some simple applications. I have been reading your articles here on finding. I have now been working on a database [a personal budget and transactions, database] where I have a need to find the last transaction, lets call it 'max date', in a particular month. I have tried a few ideas which fail. How could I do this?
Thanks in advance. I will check back to see if there is an answer posted.</description>
		<content:encoded><![CDATA[<p>I am still a novice to using FileMaker, having only used it on and off for some simple applications. I have been reading your articles here on finding. I have now been working on a database [a personal budget and transactions, database] where I have a need to find the last transaction, lets call it &#8216;max date&#8217;, in a particular month. I have tried a few ideas which fail. How could I do this?<br />
Thanks in advance. I will check back to see if there is an answer posted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff Coffey</title>
		<link>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-563</link>
		<dc:creator>Geoff Coffey</dc:creator>
		<pubDate>Tue, 18 Sep 2007 08:12:44 +0000</pubDate>
		<guid>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-563</guid>
		<description>@roman: While I question your use of the word "&lt;a href="http://en.wikipedia.org/wiki/ISO_8601" rel="nofollow"&gt;standard&lt;/a&gt;" I understand what you're saying :)

Luckily, the concept is really quite simple. Whatever date format your computer is configured to use, just put a "*" in any one or more of the date segments. FileMaker will treat this as a wildcard. So, for instance, if your date format is "day/month/year" and you search for &lt;code&gt;4/*/2007&lt;/code&gt; you'll find the fourth of every month in 2007.

If you want to be a little more restrictive, put a range inside &lt;code&gt;{&lt;/code&gt; and &lt;code&gt;}&lt;/code&gt; instead. This will find the fourth of every month in the first quarter: &lt;code&gt;4/{1..3}/2007&lt;/code&gt;.

Hope that makes sense.</description>
		<content:encoded><![CDATA[<p>@roman: While I question your use of the word &#8220;<a href="http://en.wikipedia.org/wiki/ISO_8601" rel="nofollow">standard</a>&#8221; I understand what you&#8217;re saying <img src='http://sixfriedrice.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Luckily, the concept is really quite simple. Whatever date format your computer is configured to use, just put a &#8220;*&#8221; in any one or more of the date segments. FileMaker will treat this as a wildcard. So, for instance, if your date format is &#8220;day/month/year&#8221; and you search for <code>4/*/2007</code> you&#8217;ll find the fourth of every month in 2007.</p>
<p>If you want to be a little more restrictive, put a range inside <code>{</code> and <code>}</code> instead. This will find the fourth of every month in the first quarter: <code>4/{1..3}/2007</code>.</p>
<p>Hope that makes sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roman</title>
		<link>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-558</link>
		<dc:creator>roman</dc:creator>
		<pubDate>Mon, 17 Sep 2007 23:45:35 +0000</pubDate>
		<guid>http://sixfriedrice.com/wp/find-mode-dates-and-times/#comment-558</guid>
		<description>Your series is useful, but I find the section on dates *very* confusing, because all the dates are in American. 
It might be helpful to add a section explaining the notation in standard date format (eg dd/mm/yyyy).
I presume FM refers to its preference file to correctly parse the date field
(and therefore know how to interpret various ranges)?</description>
		<content:encoded><![CDATA[<p>Your series is useful, but I find the section on dates *very* confusing, because all the dates are in American.<br />
It might be helpful to add a section explaining the notation in standard date format (eg dd/mm/yyyy).<br />
I presume FM refers to its preference file to correctly parse the date field<br />
(and therefore know how to interpret various ranges)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
