dbTalk Databases Forums  

Dates

comp.databases.filemaker comp.databases.filemaker


Discuss Dates in the comp.databases.filemaker forum.



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

Default Dates - 09-27-2005 , 05:08 AM






If I have a field called "Appt Date" and I want to find how many future
appointments there are in the database, how would you do that. I thought....

New Field - Calculation "Appts Outstanding" - If (Appt Date= ? // ; 1 ; 0)

This will not work because it won't allow the entry in the calculation
field.? //

Any suggestions?

Thanks



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

Default Re: Dates - 09-27-2005 , 05:22 AM






Looks like my text was translatted ? should be greater than or equal to!



Reply With Quote
  #3  
Old   
Matt Wills
 
Posts: n/a

Default Re: Dates - 09-27-2005 , 06:40 AM



Falcon wrote on (9/27/2005):

Quote:
If I have a field called "Appt Date" and I want to find how many future
appointments there are in the database, how would you do that. I
thought....

New Field - Calculation "Appts Outstanding" - If (Appt Date= ? // ; 1 ; 0)

This will not work because it won't allow the entry in the calculation
field.? //

Any suggestions?

Thanks
What's the If stuff? You don't enter a calculation like that in a find
request.

Find (greater than/equal to symbol) // is all you need.

Described in "Finding numbers, dates, times, and timestamps" in Help.

Matt

--



Reply With Quote
  #4  
Old   
Falcon
 
Posts: n/a

Default Re: Dates - 09-27-2005 , 06:56 AM



Sorry not explaining myself here.

I want to create a field that will have a running total of apps due. So I
though that the field would see if the appt was due in the future, if so
give it a value of 1 if not 0

Then display this field!

I was not looking for a search and find!

Falcon



Reply With Quote
  #5  
Old   
Matt Wills
 
Posts: n/a

Default Re: Dates - 09-27-2005 , 07:22 AM



OK.

Try this:

A calculation field:

AppointmentsRemaining = If ( ApptDate => // ; 1 ; 0 )

and

A global AppointmentsCount = Sum ( AppointmentsRemaining )

You might also do it with a relationship between your ApptDate field => a
global field set to Get (CurrentDate), with a field expressing a Count of
records matching that relationship.

Matt

--


Reply With Quote
  #6  
Old   
Falcon
 
Posts: n/a

Default Re: Dates - 09-27-2005 , 10:16 AM



Matt I should say I'm using FM 8 and it does not like

If ( Appt Date => // ; 1 ; 0 )

Error message "A number, text constant, field name or "(" is expected here."



Reply With Quote
  #7  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Dates - 09-27-2005 , 03:56 PM



In article <znd_e.4239$RW.2175 (AT) fe2 (DOT) news.blueyonder.co.uk>, "Falcon"
<info (AT) getlost (DOT) com> wrote:

Quote:
Matt I should say I'm using FM 8 and it does not like

If ( Appt Date => // ; 1 ; 0 )

Error message "A number, text constant, field name or "(" is expected here."
I'm not sure about FileMaker 7 or 8, but I don't think you can use //
within a calcuation field or auto enter calculation. Instead you should
be using the Get(CurrentDate) function.
ie.
If ( Appt Date => Get(CurrentDate) ; 1 ; 0 )


The // is a special symbol to obtain today's date, but only when used
in Find mode.



Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #8  
Old   
FP
 
Posts: n/a

Default Re: Dates - 09-27-2005 , 05:03 PM



I think what you're looking for is to create a global date field
"Date_g" and that needs to be linked to your "Appointment Date" but
link it as
Date_g <= Appointment Date

Then create a calc field that just counts the number of related records.


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.