find last month's name

18 messages Options
Embed this post
Permalink
Seth Pomeroy

find last month's name

Reply Threaded More More options
Print post
Permalink
hi folks, i can't seem to get the name of last month. i have found the
current month's name (november) which is easy but i can't seem to find
last month's name (october). i need to have a text field so if we are in
december, last month will be november, etc.

i've scanned nabble and can't find an answer so any help is appreciated
- thnk you
-seth
_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Bob Minteer-2

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
This should do it:

MonthName(Date(Month(Get(CurrentDate))-1;1;Year(Get(CurrentDate))))

Regards...

Bob


On 11/7/09 9:03 AM, "Seth Pomeroy" <[hidden email]> wrote:

> hi folks, i can't seem to get the name of last month. i have found the
> current month's name (november) which is easy but i can't seem to find
> last month's name (october). i need to have a text field so if we are in
> december, last month will be november, etc.
>
> i've scanned nabble and can't find an answer so any help is appreciated
> - thnk you
> -seth
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>


_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Bart Bartholomay

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
In reply to this post by Seth Pomeroy
Try:

MonthName(Date(Month(Get(CurrentDate)) ; -1 ; Year(Get(CurrentDate))))

Bart

Bart Bartholomay
HAB Marketing
3725 8th Lane
Vero Beach, FL 32960
772.299.6352
Filemaker Business Alliance
http://HABMarketing.com




On Nov 7, 2009, at 10:03 AM, Seth Pomeroy wrote:

> hi folks, i can't seem to get the name of last month. i have found  
> the current month's name (november) which is easy but i can't seem  
> to find last month's name (october). i need to have a text field so  
> if we are in december, last month will be november, etc.
>
> i've scanned nabble and can't find an answer so any help is  
> appreciated - thnk you
> -seth
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au

_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Seth Pomeroy

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
thnks bob and bart, this works beautifully - mind if i ask how i would
get last year's name (or number actually) - is this the same? thank you
-seth


Bart Bartholomay wrote:

> Try:
>
> MonthName(Date(Month(Get(CurrentDate)) ; -1 ; Year(Get(CurrentDate))))
>
> Bart
>
> Bart Bartholomay
> HAB Marketing
> 3725 8th Lane
> Vero Beach, FL 32960
> 772.299.6352
> Filemaker Business Alliance
> http://HABMarketing.com
>
>
>
>
> On Nov 7, 2009, at 10:03 AM, Seth Pomeroy wrote:
>
>> hi folks, i can't seem to get the name of last month. i have found the
>> current month's name (november) which is easy but i can't seem to find
>> last month's name (october). i need to have a text field so if we are
>> in december, last month will be november, etc.
>>
>> i've scanned nabble and can't find an answer so any help is
>> appreciated - thnk you
>> -seth
>> _______________________________________________
>> FMPexperts mailing list
>> [hidden email]
>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
>
_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Bart Bartholomay

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
Year(Get(CurrentDate)) - 1

Bart

Bart Bartholomay
HAB Marketing
3725 8th Lane
Vero Beach, FL 32960
772.299.6352
Filemaker Business Alliance
http://HABMarketing.com




On Nov 7, 2009, at 10:19 AM, Seth Pomeroy wrote:

> thnks bob and bart, this works beautifully - mind if i ask how i  
> would get last year's name (or number actually) - is this the same?  
> thank you
> -seth
>
>
> Bart Bartholomay wrote:
>> Try:
>> MonthName(Date(Month(Get(CurrentDate)) ; -1 ; Year(Get
>> (CurrentDate))))
>> Bart
>> Bart Bartholomay
>> HAB Marketing
>> 3725 8th Lane
>> Vero Beach, FL 32960
>> 772.299.6352
>> Filemaker Business Alliance
>> http://HABMarketing.com
>> On Nov 7, 2009, at 10:03 AM, Seth Pomeroy wrote:
>>> hi folks, i can't seem to get the name of last month. i have found  
>>> the current month's name (november) which is easy but i can't seem  
>>> to find last month's name (october). i need to have a text field  
>>> so if we are in december, last month will be november, etc.
>>>
>>> i've scanned nabble and can't find an answer so any help is  
>>> appreciated - thnk you
>>> -seth
>>> _______________________________________________
>>> FMPexperts mailing list
>>> [hidden email]
>>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>> _______________________________________________
>> FMPexperts mailing list
>> [hidden email]
>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au

_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Seth Pomeroy

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
awesomely simple - thnks bart
-seth


Bart Bartholomay wrote:

> Year(Get(CurrentDate)) - 1
>
> Bart
>
> Bart Bartholomay
> HAB Marketing
> 3725 8th Lane
> Vero Beach, FL 32960
> 772.299.6352
> Filemaker Business Alliance
> http://HABMarketing.com
>
>
>
>
> On Nov 7, 2009, at 10:19 AM, Seth Pomeroy wrote:
>
>> thnks bob and bart, this works beautifully - mind if i ask how i would
>> get last year's name (or number actually) - is this the same? thank you
>> -seth
>>
>>
>> Bart Bartholomay wrote:
>>> Try:
>>> MonthName(Date(Month(Get(CurrentDate)) ; -1 ; Year(Get(CurrentDate))))
>>> Bart
>>> Bart Bartholomay
>>> HAB Marketing
>>> 3725 8th Lane
>>> Vero Beach, FL 32960
>>> 772.299.6352
>>> Filemaker Business Alliance
>>> http://HABMarketing.com
>>> On Nov 7, 2009, at 10:03 AM, Seth Pomeroy wrote:
>>>> hi folks, i can't seem to get the name of last month. i have found
>>>> the current month's name (november) which is easy but i can't seem
>>>> to find last month's name (october). i need to have a text field so
>>>> if we are in december, last month will be november, etc.
>>>>
>>>> i've scanned nabble and can't find an answer so any help is
>>>> appreciated - thnk you
>>>> -seth
>>>> _______________________________________________
>>>> FMPexperts mailing list
>>>> [hidden email]
>>>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>>> _______________________________________________
>>> FMPexperts mailing list
>>> [hidden email]
>>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>> _______________________________________________
>> FMPexperts mailing list
>> [hidden email]
>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
>
_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
dwdc

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
In reply to this post by Bart Bartholomay
On Nov 7, 2009, at 7:14 AM, Bart Bartholomay wrote:



> MonthName(Date(Month(Get(CurrentDate)) ; -1 ; Year(Get(CurrentDate))))


If the main objection is to get the Month Name, this will work also:

Let(a=Month(Get(CurrentDate)),MonthName(Date(a-1;1;1)))

Version #4 of skinning the cat ;-)

Hope this helps...

Don Wieland
D W   D a t a   C o n c e p t s
~~~~~~~~~~~~~~~~~~~~~~~~~
[hidden email]
Direct Line - (949) 305-2771

Integrated data solutions to fit your business needs.

Need assistance in dialing in your FileMaker solution? Check out our  
Developer Support Plan at:
http://www.dwdataconcepts.com/DevSup.html

Appointment 1.0v9 - Powerful Appointment Scheduling for FileMaker Pro  
9 or higher
http://www.appointment10.com

For a quick overview -
http://www.appointment10.com/Appt10_Promo/Overview.html

_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Stephen Wonfor

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
Don

Or the equally fun Version #5...

MonthName(
Date(Month(Get(CurrentDate));0;Year(Get(CurrentDate)
)

The zero also always gives you the last day number of the previous  
month.

Stephen

----------

FAMOUS:  the recording procedure is in phase of modernization.  If you  
obtain an error message, not to hesitate to contact the staff of the  
library, or tries again more late.  Thanks




On Nov 7, 2009, at 9:28 AM, Don Wieland wrote:

> On Nov 7, 2009, at 7:14 AM, Bart Bartholomay wrote:
>
>
>
>> MonthName(Date(Month(Get(CurrentDate)) ; -1 ; Year(Get
>> (CurrentDate))))
>
>
> If the main objection is to get the Month Name, this will work also:
>
> Let(a=Month(Get(CurrentDate)),MonthName(Date(a-1;1;1)))
>
> Version #4 of skinning the cat ;-)
>
> Hope this helps...
>
> Don Wieland
> D W   D a t a   C o n c e p t s
> ~~~~~~~~~~~~~~~~~~~~~~~~~
> [hidden email]
> Direct Line - (949) 305-2771
>
> Integrated data solutions to fit your business needs.
>
> Need assistance in dialing in your FileMaker solution? Check out our  
> Developer Support Plan at:
> http://www.dwdataconcepts.com/DevSup.html
>
> Appointment 1.0v9 - Powerful Appointment Scheduling for FileMaker  
> Pro 9 or higher
> http://www.appointment10.com
>
> For a quick overview -
> http://www.appointment10.com/Appt10_Promo/Overview.html
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au

_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Seth Pomeroy

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
thnks don and stephen - stephen, can you plse explain more what the
below does, i'm at a loss - thnk you
-seth


Stephen Wonfor wrote:

> Don
>
> Or the equally fun Version #5...
>
> MonthName(
> Date(Month(Get(CurrentDate));0;Year(Get(CurrentDate)
> )
>
> The zero also always gives you the last day number of the previous month.
>
> Stephen
>
> ----------
>
> FAMOUS:  the recording procedure is in phase of modernization.  If you
> obtain an error message, not to hesitate to contact the staff of the
> library, or tries again more late.  Thanks
>
>
>
>
> On Nov 7, 2009, at 9:28 AM, Don Wieland wrote:
>
>> On Nov 7, 2009, at 7:14 AM, Bart Bartholomay wrote:
>>
>>
>>
>>> MonthName(Date(Month(Get(CurrentDate)) ; -1 ; Year(Get(CurrentDate))))
>>
>>
>> If the main objection is to get the Month Name, this will work also:
>>
>> Let(a=Month(Get(CurrentDate)),MonthName(Date(a-1;1;1)))
>>
>> Version #4 of skinning the cat ;-)
>>
>> Hope this helps...
>>
>> Don Wieland
>> D W   D a t a   C o n c e p t s
>> ~~~~~~~~~~~~~~~~~~~~~~~~~
>> [hidden email]
>> Direct Line - (949) 305-2771
>>
>> Integrated data solutions to fit your business needs.
>>
>> Need assistance in dialing in your FileMaker solution? Check out our
>> Developer Support Plan at:
>> http://www.dwdataconcepts.com/DevSup.html
>>
>> Appointment 1.0v9 - Powerful Appointment Scheduling for FileMaker Pro
>> 9 or higher
>> http://www.appointment10.com
>>
>> For a quick overview -
>> http://www.appointment10.com/Appt10_Promo/Overview.html
>>
>> _______________________________________________
>> FMPexperts mailing list
>> [hidden email]
>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
>
_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Bob Patin

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
Seth,

FileMaker will take a date like this:

12/0/2009

and fixes it so that it gets changed to 11/30/2009, which is what it  
really is...

so in his formula

> Date(Month(Get(CurrentDate));0;Year(Get(CurrentDate)

you get this:

date takes a month number, day number, and year number, so you have

date( month(get(currentdate))

month(get(currentdate)) is 11 right now

0 is the day, which means FileMaker will essentially go to the  
previous month's last day

year(get(currentdate)) = 2009 right now

so you have

11 ; 0 ; 2009

or, in actuality, 10/31/2009

Hope this helps...

Bob Patin
Longterm Solutions
[hidden email]
615-333-6858
http://www.longtermsolutions.com
iChat: bobpatin
FileMaker 10 Certified Developer
FileMaker 9 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--------------------------
FileMaker hosting and consulting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting
On Nov 7, 2009, at 10:59 AM, Seth Pomeroy wrote:

> thnks don and stephen - stephen, can you plse explain more what the  
> below does, i'm at a loss - thnk you
> -seth

_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Seth Pomeroy

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
thnks bob, this helps, makes sense now and it's cool but when would you
ever need to use it? is it used in case of human error or something
ethereal that's above my head?
-seth

Bob Patin wrote:

> Seth,
>
> FileMaker will take a date like this:
>
> 12/0/2009
>
> and fixes it so that it gets changed to 11/30/2009, which is what it
> really is...
>
> so in his formula
>
>> Date(Month(Get(CurrentDate));0;Year(Get(CurrentDate)
>
> you get this:
>
> date takes a month number, day number, and year number, so you have
>
> date( month(get(currentdate))
>
> month(get(currentdate)) is 11 right now
>
> 0 is the day, which means FileMaker will essentially go to the previous
> month's last day
>
> year(get(currentdate)) = 2009 right now
>
> so you have
>
> 11 ; 0 ; 2009
>
> or, in actuality, 10/31/2009
>
> Hope this helps...
>
> Bob Patin
> Longterm Solutions
> [hidden email]
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> FileMaker 10 Certified Developer
> FileMaker 9 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --------------------------
> FileMaker hosting and consulting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
> On Nov 7, 2009, at 10:59 AM, Seth Pomeroy wrote:
>
>> thnks don and stephen - stephen, can you plse explain more what the
>> below does, i'm at a loss - thnk you
>> -seth
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
>
_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Bob Patin

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
Well, a great use is when you need to know the last day of the  
previous month... for example, let's say you wanted to populate 2  
fields with the 1st of the month and the last of the month; using that  
trick you could put "11/1/2009" and "11/30/2009".

I do this often when I write universal FINDs, where I want to put a  
button for the client that will FIND all the records for the current  
month; when they click the button, it puts the starting & ending dates  
in for them.

Another good use is to find the last day in February, since the last  
day changes on leap years.

BP

Bob Patin
Longterm Solutions
[hidden email]
615-333-6858
http://www.longtermsolutions.com
iChat: bobpatin
FileMaker 10 Certified Developer
FileMaker 9 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--------------------------
FileMaker hosting and consulting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting
On Nov 7, 2009, at 11:47 AM, Seth Pomeroy wrote:

> thnks bob, this helps, makes sense now and it's cool but when would  
> you ever need to use it? is it used in case of human error or  
> something ethereal that's above my head?
> -seth

_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Seth Pomeroy

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
well this sounds brillant - a bit over my head but i like it - would the
button populate those 2 fields or does the user enter a beginning date
and an ending date?

Bob Patin wrote:

> Well, a great use is when you need to know the last day of the previous
> month... for example, let's say you wanted to populate 2 fields with the
> 1st of the month and the last of the month; using that trick you could
> put "11/1/2009" and "11/30/2009".
>
> I do this often when I write universal FINDs, where I want to put a
> button for the client that will FIND all the records for the current
> month; when they click the button, it puts the starting & ending dates
> in for them.
>
> Another good use is to find the last day in February, since the last day
> changes on leap years.
>
> BP
>
> Bob Patin
> Longterm Solutions
> [hidden email]
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> FileMaker 10 Certified Developer
> FileMaker 9 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --------------------------
> FileMaker hosting and consulting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
> On Nov 7, 2009, at 11:47 AM, Seth Pomeroy wrote:
>
>> thnks bob, this helps, makes sense now and it's cool but when would
>> you ever need to use it? is it used in case of human error or
>> something ethereal that's above my head?
>> -seth
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
>
_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Bob Patin

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
Here's what I do:

If I'm writing a script to allow clients to find invoices, for  
example, I take them to a custom FIND layout (I use John Mark  
Osborne's Ultimate Find script, which is very cool--worth looking into);

In the case of an invoice FIND, I have a pair of global date fields  
that are set up with the calendar widget; on the layout I also put a  
button that says "Current Month," as well as another that says "Year  
to date," and usually another that says "Today". By clicking on the  
"Current Month" button, for example, the little script puts the first  
day of this month in the first field, and the last day of this month  
into the other (here's where that calculation comes in handy); the  
next step in this little script also puts the 2 dates into the actual  
invoice DATE field like this: "11/1/2009..."11/30/2009" (this field  
isn't displayed on the layout).

So this way, a user can either put in starting & ending dates, or  
click one of the 3 buttons to instantly populate the date fields with  
one of the 3 choices.

Best,

Bob Patin

Longterm Solutions
[hidden email]
615-333-6858
http://www.longtermsolutions.com
iChat: bobpatin
FileMaker 10 Certified Developer
FileMaker 9 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--------------------------
FileMaker hosting and consulting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting

On Nov 7, 2009, at 12:01 PM, Seth Pomeroy wrote:

> well this sounds brillant - a bit over my head but i like it - would  
> the button populate those 2 fields or does the user enter a  
> beginning date and an ending date?
>
> Bob Patin wrote:
>> Well, a great use is when you need to know the last day of the  
>> previous month... for example, let's say you wanted to populate 2  
>> fields with the 1st of the month and the last of the month; using  
>> that trick you could put "11/1/2009" and "11/30/2009".
>> I do this often when I write universal FINDs, where I want to put a  
>> button for the client that will FIND all the records for the  
>> current month; when they click the button, it puts the starting &  
>> ending dates in for them.
>> Another good use is to find the last day in February, since the  
>> last day changes on leap years.
>> BP
>> Bob Patin
>> Longterm Solutions
>> [hidden email]
>> 615-333-6858
>> http://www.longtermsolutions.com
>> iChat: bobpatin
>> FileMaker 10 Certified Developer
>> FileMaker 9 Certified Developer
>> Member of FileMaker Business Alliance and FileMaker TechNet
>> --------------------------
>> FileMaker hosting and consulting for all versions of FileMaker
>> PHP • Full email services • Free DNS hosting • Colocation •  
>> Consulting
>> On Nov 7, 2009, at 11:47 AM, Seth Pomeroy wrote:
>>> thnks bob, this helps, makes sense now and it's cool but when  
>>> would you ever need to use it? is it used in case of human error  
>>> or something ethereal that's above my head?
>>> -seth
>> _______________________________________________
>> FMPexperts mailing list
>> [hidden email]
>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au

_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Bart Bartholomay

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
Bob -

Don't you mean "11 ; 1 ; 2009" and "11 + 1 ; 0 ; 2009"?

Bart

Bart Bartholomay
HAB Marketing
3725 8th Lane
Vero Beach, FL 32960
772.299.6352
Filemaker Business Alliance
http://HABMarketing.com




On Nov 7, 2009, at 1:50 PM, Bob Patin wrote:

> Here's what I do:
>
> If I'm writing a script to allow clients to find invoices, for  
> example, I take them to a custom FIND layout (I use John Mark  
> Osborne's Ultimate Find script, which is very cool--worth looking  
> into);
>
> In the case of an invoice FIND, I have a pair of global date fields  
> that are set up with the calendar widget; on the layout I also put a  
> button that says "Current Month," as well as another that says "Year  
> to date," and usually another that says "Today". By clicking on the  
> "Current Month" button, for example, the little script puts the  
> first day of this month in the first field, and the last day of this  
> month into the other (here's where that calculation comes in handy);  
> the next step in this little script also puts the 2 dates into the  
> actual invoice DATE field like this: "11/1/2009..."11/30/2009" (this  
> field isn't displayed on the layout).
>
> So this way, a user can either put in starting & ending dates, or  
> click one of the 3 buttons to instantly populate the date fields  
> with one of the 3 choices.
>
> Best,
>
> Bob Patin
>
> Longterm Solutions
> [hidden email]
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> FileMaker 10 Certified Developer
> FileMaker 9 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --------------------------
> FileMaker hosting and consulting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
>
> On Nov 7, 2009, at 12:01 PM, Seth Pomeroy wrote:
>
>> well this sounds brillant - a bit over my head but i like it -  
>> would the button populate those 2 fields or does the user enter a  
>> beginning date and an ending date?
>>
>> Bob Patin wrote:
>>> Well, a great use is when you need to know the last day of the  
>>> previous month... for example, let's say you wanted to populate 2  
>>> fields with the 1st of the month and the last of the month; using  
>>> that trick you could put "11/1/2009" and "11/30/2009".
>>> I do this often when I write universal FINDs, where I want to put  
>>> a button for the client that will FIND all the records for the  
>>> current month; when they click the button, it puts the starting &  
>>> ending dates in for them.
>>> Another good use is to find the last day in February, since the  
>>> last day changes on leap years.
>>> BP
>>> Bob Patin
>>> Longterm Solutions
>>> [hidden email]
>>> 615-333-6858
>>> http://www.longtermsolutions.com
>>> iChat: bobpatin
>>> FileMaker 10 Certified Developer
>>> FileMaker 9 Certified Developer
>>> Member of FileMaker Business Alliance and FileMaker TechNet
>>> --------------------------
>>> FileMaker hosting and consulting for all versions of FileMaker
>>> PHP • Full email services • Free DNS hosting • Colocation •  
>>> Consulting
>>> On Nov 7, 2009, at 11:47 AM, Seth Pomeroy wrote:
>>>> thnks bob, this helps, makes sense now and it's cool but when  
>>>> would you ever need to use it? is it used in case of human error  
>>>> or something ethereal that's above my head?
>>>> -seth
>>> _______________________________________________
>>> FMPexperts mailing list
>>> [hidden email]
>>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>> _______________________________________________
>> FMPexperts mailing list
>> [hidden email]
>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au

_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Bob Patin

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
That would be an even easier way to do it; the calculation actually  
didn't come from me... :)

Bob

Bob Patin
Longterm Solutions
[hidden email]
615-333-6858
http://www.longtermsolutions.com
iChat: bobpatin
FileMaker 10 Certified Developer
FileMaker 9 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--------------------------
FileMaker hosting and consulting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting
On Nov 7, 2009, at 12:54 PM, Bart Bartholomay wrote:

> Bob -
>
> Don't you mean "11 ; 1 ; 2009" and "11 + 1 ; 0 ; 2009"?
>
> Bart
>
> Bart Bartholomay
> HAB Marketing
> 3725 8th Lane
> Vero Beach, FL 32960
> 772.299.6352
> Filemaker Business Alliance
> http://HABMarketing.com
>
>
>
>
> On Nov 7, 2009, at 1:50 PM, Bob Patin wrote:
>
>> Here's what I do:
>>
>> If I'm writing a script to allow clients to find invoices, for  
>> example, I take them to a custom FIND layout (I use John Mark  
>> Osborne's Ultimate Find script, which is very cool--worth looking  
>> into);
>>
>> In the case of an invoice FIND, I have a pair of global date fields  
>> that are set up with the calendar widget; on the layout I also put  
>> a button that says "Current Month," as well as another that says  
>> "Year to date," and usually another that says "Today". By clicking  
>> on the "Current Month" button, for example, the little script puts  
>> the first day of this month in the first field, and the last day of  
>> this month into the other (here's where that calculation comes in  
>> handy); the next step in this little script also puts the 2 dates  
>> into the actual invoice DATE field like this:  
>> "11/1/2009..."11/30/2009" (this field isn't displayed on the layout).
>>
>> So this way, a user can either put in starting & ending dates, or  
>> click one of the 3 buttons to instantly populate the date fields  
>> with one of the 3 choices.
>>
>> Best,
>>
>> Bob Patin
>>
>> Longterm Solutions
>> [hidden email]
>> 615-333-6858
>> http://www.longtermsolutions.com
>> iChat: bobpatin
>> FileMaker 10 Certified Developer
>> FileMaker 9 Certified Developer
>> Member of FileMaker Business Alliance and FileMaker TechNet
>> --------------------------
>> FileMaker hosting and consulting for all versions of FileMaker
>> PHP • Full email services • Free DNS hosting • Colocation •  
>> Consulting
>>
>> On Nov 7, 2009, at 12:01 PM, Seth Pomeroy wrote:
>>
>>> well this sounds brillant - a bit over my head but i like it -  
>>> would the button populate those 2 fields or does the user enter a  
>>> beginning date and an ending date?
>>>
>>> Bob Patin wrote:
>>>> Well, a great use is when you need to know the last day of the  
>>>> previous month... for example, let's say you wanted to populate 2  
>>>> fields with the 1st of the month and the last of the month; using  
>>>> that trick you could put "11/1/2009" and "11/30/2009".
>>>> I do this often when I write universal FINDs, where I want to put  
>>>> a button for the client that will FIND all the records for the  
>>>> current month; when they click the button, it puts the starting &  
>>>> ending dates in for them.
>>>> Another good use is to find the last day in February, since the  
>>>> last day changes on leap years.
>>>> BP
>>>> Bob Patin
>>>> Longterm Solutions
>>>> [hidden email]
>>>> 615-333-6858
>>>> http://www.longtermsolutions.com
>>>> iChat: bobpatin
>>>> FileMaker 10 Certified Developer
>>>> FileMaker 9 Certified Developer
>>>> Member of FileMaker Business Alliance and FileMaker TechNet
>>>> --------------------------
>>>> FileMaker hosting and consulting for all versions of FileMaker
>>>> PHP • Full email services • Free DNS hosting • Colocation •  
>>>> Consulting
>>>> On Nov 7, 2009, at 11:47 AM, Seth Pomeroy wrote:
>>>>> thnks bob, this helps, makes sense now and it's cool but when  
>>>>> would you ever need to use it? is it used in case of human error  
>>>>> or something ethereal that's above my head?
>>>>> -seth
>>>> _______________________________________________
>>>> FMPexperts mailing list
>>>> [hidden email]
>>>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts- 
>>>> ironclad.net.au
>>> _______________________________________________
>>> FMPexperts mailing list
>>> [hidden email]
>>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>>
>> _______________________________________________
>> FMPexperts mailing list
>> [hidden email]
>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au

_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Seth Pomeroy

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
In reply to this post by Bob Patin
thnks bob, really cool - i somewhat do the same but use relationships -
i have Today, Tomorrow, This Month, Next Month, This Year, etc as links
(buttons) to quickly count and find certain criteria so that the user
doesn't have to manually find it/them - thanks a million for the
pointers and i'll have to check out mark o's ultimate find
thnks again
-seth


Bob Patin wrote:

> Here's what I do:
>
> If I'm writing a script to allow clients to find invoices, for example,
> I take them to a custom FIND layout (I use John Mark Osborne's Ultimate
> Find script, which is very cool--worth looking into);
>
> In the case of an invoice FIND, I have a pair of global date fields that
> are set up with the calendar widget; on the layout I also put a button
> that says "Current Month," as well as another that says "Year to date,"
> and usually another that says "Today". By clicking on the "Current
> Month" button, for example, the little script puts the first day of this
> month in the first field, and the last day of this month into the other
> (here's where that calculation comes in handy); the next step in this
> little script also puts the 2 dates into the actual invoice DATE field
> like this: "11/1/2009..."11/30/2009" (this field isn't displayed on the
> layout).
>
> So this way, a user can either put in starting & ending dates, or click
> one of the 3 buttons to instantly populate the date fields with one of
> the 3 choices.
>
> Best,
>
> Bob Patin
>
> Longterm Solutions
> [hidden email]
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> FileMaker 10 Certified Developer
> FileMaker 9 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --------------------------
> FileMaker hosting and consulting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
>
> On Nov 7, 2009, at 12:01 PM, Seth Pomeroy wrote:
>
>> well this sounds brillant - a bit over my head but i like it - would
>> the button populate those 2 fields or does the user enter a beginning
>> date and an ending date?
>>
>> Bob Patin wrote:
>>> Well, a great use is when you need to know the last day of the
>>> previous month... for example, let's say you wanted to populate 2
>>> fields with the 1st of the month and the last of the month; using
>>> that trick you could put "11/1/2009" and "11/30/2009".
>>> I do this often when I write universal FINDs, where I want to put a
>>> button for the client that will FIND all the records for the current
>>> month; when they click the button, it puts the starting & ending
>>> dates in for them.
>>> Another good use is to find the last day in February, since the last
>>> day changes on leap years.
>>> BP
>>> Bob Patin
>>> Longterm Solutions
>>> [hidden email]
>>> 615-333-6858
>>> http://www.longtermsolutions.com
>>> iChat: bobpatin
>>> FileMaker 10 Certified Developer
>>> FileMaker 9 Certified Developer
>>> Member of FileMaker Business Alliance and FileMaker TechNet
>>> --------------------------
>>> FileMaker hosting and consulting for all versions of FileMaker
>>> PHP • Full email services • Free DNS hosting • Colocation • Consulting
>>> On Nov 7, 2009, at 11:47 AM, Seth Pomeroy wrote:
>>>> thnks bob, this helps, makes sense now and it's cool but when would
>>>> you ever need to use it? is it used in case of human error or
>>>> something ethereal that's above my head?
>>>> -seth
>>> _______________________________________________
>>> FMPexperts mailing list
>>> [hidden email]
>>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>> _______________________________________________
>> FMPexperts mailing list
>> [hidden email]
>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>
>
_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Bob Patin

Re: find last month's name

Reply Threaded More More options
Print post
Permalink
Cool; you're right, using a relationship like that works great, but  
when you're doing a FIND where there might be a date, a name, an  
invoice number, or any combo of these, I use this method.

BP

Bob Patin
Longterm Solutions
[hidden email]
615-333-6858
http://www.longtermsolutions.com
iChat: bobpatin
FileMaker 10 Certified Developer
FileMaker 9 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--------------------------
FileMaker hosting and consulting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting
On Nov 7, 2009, at 1:08 PM, Seth Pomeroy wrote:

> thnks bob, really cool - i somewhat do the same but use  
> relationships - i have Today, Tomorrow, This Month, Next Month, This  
> Year, etc as links (buttons) to quickly count and find certain  
> criteria so that the user doesn't have to manually find it/them

_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au