dbTalk Databases Forums  

Finding a Date plus the next four days

comp.databases.filemaker comp.databases.filemaker


Discuss Finding a Date plus the next four days in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stephen Larivee
 
Posts: n/a

Default Finding a Date plus the next four days - 09-23-2005 , 09:09 AM






I am using FMP 7 on Windows XP.

I am trying to enter a find request that will take the date I enter for the
find and then add four more days to the find. So if I do a find for
December 12, I will end up with Dec 12, 13, 14, 15, and 16.

The date field I am using is called PB Date. I have about 300 records,
dated from August to June.

What kind of find entry do I need to make to get the date I enter plus the
next four days????

TIA



Reply With Quote
  #2  
Old   
Grip
 
Posts: n/a

Default Re: Finding a Date plus the next four days - 09-23-2005 , 09:21 AM






Wish I could find a date in the next four days

Try "date...other date". The ellipsis will find you all the dates in
between the two you put in, inclusive.

-G


Reply With Quote
  #3  
Old   
Stephen Larivee
 
Posts: n/a

Default Re: Finding a Date plus the next four days - 09-23-2005 , 10:17 AM



Thank you.

Is there a way of automating this so if I enter the first date, something
like "+4" is automatically added? I will need to do many of these and if I
can simplify things it would be very helpful.

I can make a script, but I don't know what to add to the first date that
would be like my "+4" above to give the same results.



"Grip" <grip (AT) cybermesa (DOT) com> wrote

Quote:
Wish I could find a date in the next four days

Try "date...other date". The ellipsis will find you all the dates in
between the two you put in, inclusive.

-G




Reply With Quote
  #4  
Old   
Maude Sansechek
 
Posts: n/a

Default Re: Finding a Date plus the next four days - 09-23-2005 , 10:37 AM



Newbie effort ...:

MyDate is the date you're searching through.
Date1 is the start date as a date field.
Date2 is the end date as a calculation = Date1 + 4

Make a copy of the Myfile in the Table graph.
So that you have Myfile1 and Myfile2
Make a double relationship between Myfile1 and Myfile2 using
Date1 >= MyDate AND
Date2 <= MyDate to
Now in a layout based on Mayfile1, stick a portal based on Myfile2.

Does that work ?

Maude








"Stephen Larivee" <NOlariveeslSPAM (AT) yahoo (DOT) PLEASEcom> a écrit dans le message
de news: zfCdnZc46ZAfganeRVn-vQ (AT) comcast (DOT) com...
Quote:
Thank you.

Is there a way of automating this so if I enter the first date, something
like "+4" is automatically added? I will need to do many of these and if
I can simplify things it would be very helpful.

I can make a script, but I don't know what to add to the first date that
would be like my "+4" above to give the same results.



"Grip" <grip (AT) cybermesa (DOT) com> wrote in message
news:1127485265.383721.256130 (AT) g44g2000cwa (DOT) googlegroups.com...
Wish I could find a date in the next four days

Try "date...other date". The ellipsis will find you all the dates in
between the two you put in, inclusive.

-G






Reply With Quote
  #5  
Old   
42
 
Posts: n/a

Default Re: Finding a Date plus the next four days - 09-23-2005 , 11:36 AM



In article <zfCdnZc46ZAfganeRVn-vQ (AT) comcast (DOT) com>,
NOlariveeslSPAM (AT) yahoo (DOT) PLEASEcom says...
Quote:
Thank you.

Is there a way of automating this so if I enter the first date, something
like "+4" is automatically added? I will need to do many of these and if I
can simplify things it would be very helpful.

I can make a script, but I don't know what to add to the first date that
would be like my "+4" above to give the same results.
write the script, take it to a screen to allow entry of the start date
to a global (called say "inputdate", wait for user input, then enter
find mode, insert calculated result into the actual date:

(datetotext(inputdate) & "..." & datetotext(inputdate+4)

perform find.

voila.

-Dave


Quote:
"Grip" <grip (AT) cybermesa (DOT) com> wrote in message
news:1127485265.383721.256130 (AT) g44g2000cwa (DOT) googlegroups.com...
Wish I could find a date in the next four days

Try "date...other date". The ellipsis will find you all the dates in
between the two you put in, inclusive.

-G





Reply With Quote
  #6  
Old   
Stephen Larivee
 
Posts: n/a

Default Re: Finding a Date plus the next four days - 09-23-2005 , 02:13 PM



Getting the result that DATETOTEXT is not a valid request.



"42" <nospam (AT) nospam (DOT) com> wrote

Quote:
In article <zfCdnZc46ZAfganeRVn-vQ (AT) comcast (DOT) com>,
NOlariveeslSPAM (AT) yahoo (DOT) PLEASEcom says...
Thank you.

Is there a way of automating this so if I enter the first date, something
like "+4" is automatically added? I will need to do many of these and if
I
can simplify things it would be very helpful.

I can make a script, but I don't know what to add to the first date that
would be like my "+4" above to give the same results.

write the script, take it to a screen to allow entry of the start date
to a global (called say "inputdate", wait for user input, then enter
find mode, insert calculated result into the actual date:

(datetotext(inputdate) & "..." & datetotext(inputdate+4)

perform find.

voila.

-Dave


"Grip" <grip (AT) cybermesa (DOT) com> wrote in message
news:1127485265.383721.256130 (AT) g44g2000cwa (DOT) googlegroups.com...
Wish I could find a date in the next four days

Try "date...other date". The ellipsis will find you all the dates in
between the two you put in, inclusive.

-G







Reply With Quote
  #7  
Old   
42
 
Posts: n/a

Default Re: Finding a Date plus the next four days - 09-23-2005 , 02:33 PM



In article <vpGdnbY50utMzqneRVn-qw (AT) comcast (DOT) com>,
NOlariveeslSPAM (AT) yahoo (DOT) PLEASEcom says...
Quote:
Getting the result that DATETOTEXT is not a valid request.
You'll have to get used to the fact that much of the code presented here
is pseudocode and/or code from differing flavours of FM. In particular
FM7 revises the names of several dozen pre-existing functions.

Many of the code snippets posted here require some "reinterpretation" to
work.

In this case FM7 calls it: GetAsText(zzzz)

cheers,
Dave




Reply With Quote
  #8  
Old   
Stephen Larivee
 
Posts: n/a

Default Re: Finding a Date plus the next four days - 09-23-2005 , 04:16 PM



Thank you for your help....and patience.


"42" <nospam (AT) nospam (DOT) com> wrote

Quote:
In article <vpGdnbY50utMzqneRVn-qw (AT) comcast (DOT) com>,
NOlariveeslSPAM (AT) yahoo (DOT) PLEASEcom says...
Getting the result that DATETOTEXT is not a valid request.

You'll have to get used to the fact that much of the code presented here
is pseudocode and/or code from differing flavours of FM. In particular
FM7 revises the names of several dozen pre-existing functions.

Many of the code snippets posted here require some "reinterpretation" to
work.

In this case FM7 calls it: GetAsText(zzzz)

cheers,
Dave





Reply With Quote
  #9  
Old   
Stephen Larivee
 
Posts: n/a

Default Re: Finding a Date plus the next four days - 09-23-2005 , 04:17 PM



As you have no doubt guessed, I am a beginner here. I am trying the
recommendation from "42" since it looks more familiar to me. Thank you for
your input. I will examine it later to see if I can get it to work.

Thanks again.



"Maude Sansechek" <Maude.Sansechek (AT) Sansechek (DOT) net> wrote

Quote:
Newbie effort ...:

MyDate is the date you're searching through.
Date1 is the start date as a date field.
Date2 is the end date as a calculation = Date1 + 4

Make a copy of the Myfile in the Table graph.
So that you have Myfile1 and Myfile2
Make a double relationship between Myfile1 and Myfile2 using
Date1 >= MyDate AND
Date2 <= MyDate to
Now in a layout based on Mayfile1, stick a portal based on Myfile2.

Does that work ?

Maude








"Stephen Larivee" <NOlariveeslSPAM (AT) yahoo (DOT) PLEASEcom> a écrit dans le
message de news: zfCdnZc46ZAfganeRVn-vQ (AT) comcast (DOT) com...
Thank you.

Is there a way of automating this so if I enter the first date, something
like "+4" is automatically added? I will need to do many of these and if
I can simplify things it would be very helpful.

I can make a script, but I don't know what to add to the first date that
would be like my "+4" above to give the same results.



"Grip" <grip (AT) cybermesa (DOT) com> wrote in message
news:1127485265.383721.256130 (AT) g44g2000cwa (DOT) googlegroups.com...
Wish I could find a date in the next four days

Try "date...other date". The ellipsis will find you all the dates in
between the two you put in, inclusive.

-G








Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.