dbTalk Databases Forums  

Max Fonction

comp.databases.filemaker comp.databases.filemaker


Discuss Max Fonction in the comp.databases.filemaker forum.



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

Default Max Fonction - 11-20-2009 , 03:18 PM






HI

The max fonction is returning large numbers when searching to find the
maximum in a DATE field

MAX (table::date) will return nomething like 63425030400 instead of a
date value "12/12/09"

I want to validate if an item is still under warranty for a customer,
but I can't get the MAX value of the related data...

what is wrong with the fonction or how can I use it to make it work ?!

Thank you

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

Default Re: Max Fonction - 11-20-2009 , 03:26 PM






I forgot to add.. the related date table is a SQL database, so the
maximum search is outside FM, data display just fine, searching is
also fine.. only the MAX -MIN fonction that are not working...

Thanks

Reply With Quote
  #3  
Old   
Your Name
 
Posts: n/a

Default Re: Max Fonction - 11-20-2009 , 05:00 PM



"Bizouman" <bizouman (AT) gmail (DOT) com> wrote

Quote:
HI

The max fonction is returning large numbers when searching to find the
maximum in a DATE field

MAX (table::date) will return nomething like 63425030400 instead of a
date value "12/12/09"

I want to validate if an item is still under warranty for a customer,
but I can't get the MAX value of the related data...

what is wrong with the fonction or how can I use it to make it work ?!
There's nothing wrong with the Max or Min functions. I'm not sure where
you're using it, but if you using it in a Calculation field (for example),
make sure the field is set to be a Date result, not a Number result.

Another possibility, since you are getting the dates via an external SQL
source, is that FileMaker my not be recognising them as actual dates. In
this case you would have to do some manipulation to get the data as real
dates first or write a custom "Max" function.

Helpfull Harry )

Reply With Quote
  #4  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Max Fonction - 11-21-2009 , 02:52 AM



Bizouman <bizouman (AT) gmail (DOT) com> wrote:

Quote:
I forgot to add.. the related date table is a SQL database, so the
maximum search is outside FM, data display just fine, searching is
also fine.. only the MAX -MIN fonction that are not working...
The SQL field is probably DATETIME or SMALLDATETIME type. In FMP 10, you
can change the field type to date in your shadow table. If you're using
FMP 9 or if you're working with imported data rather than shadow tables,
see Helpful Harry's post.
--
http://clk.ch

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

Default Re: Max Fonction - 11-24-2009 , 08:59 AM



On 21 nov, 03:52, c... (AT) tele2 (DOT) ch (Christoph Kaufmann) wrote:
Quote:
Bizouman <bizou... (AT) gmail (DOT) com> wrote:
I forgot to add.. the related date table is a SQL database, so the
maximum search is outside FM, data display just fine, searching is
also fine.. only the MAX -MIN fonction that are not working...

The SQL field is probably DATETIME or SMALLDATETIME type. In FMP 10, you
can change the field type to date in your shadow table. If you're using
FMP 9 or if you're working with imported data rather than shadow tables,
see Helpful Harry's post.
--http://clk.ch
THANK YOU !!! we learn something new every day... never notice that we
can change the data type from timestamp to time or date in FM10 !!, I
had find a work around, using a calculation field, but one day, 1
zillion fields for calculation to do a work around will slow down the
machine !!

JF

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.