Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Autosearch with datetime

edited January 2002 in General
Hello, i couldn't found anyone with a problem like this....

i need an autosearch panel on a DateTime Field...

the query designer puts like it was a date field... so....

...
where
mydate between '2001-08-09' and '2001-08-09'


and i want that it do

...
where
cast(mydate as date) between '2001-08-09' and '2001-08-09'

i'm trying without sucess to create an autosearchpanel to this... but i
can't change the field_alias in sql from an autosearch panel... i can?


thanks...

Comments

  • edited January 2002
    You can extract the TdaSQL object, if you want to change the SQL field
    alias. There is a techtip article in the CodeBased newsgroup thread which
    describes how to do this. To get a select field, use the
    TdaSQL.SelectFields[] and SelectFieldsCount properties. This array property
    will give you access to the SQL SELECT field objects. You can look in
    TdaSQL.pas for the TdaField class if you want to change the TdaField's field
    alias.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.