Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on View Designer Filtering.
Message
 
 
À
14/02/2001 09:38:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00475680
Message ID:
00475738
Vues:
33
As Vlad posted, you need to use back end functions because that's where the query gets executed. For SQL Server, see CONVERT() for converting to date and Getdate() for the current datetime.

Ex.
select convert(char(10),getdate(),101) && returns 02/14/2001

>Hi,
>
>I am trying to create a filtered remote view using the view designer.
>
>FILTER by:
>
>dbf.birthdate (This is a SQL DATETIME field) = Today's date
>
>Heres what I would like to use.
>
>TTOD(dbf.birthdate) = DATE(); but that does not seem to work.
>
>I am trying to select records that the birthdate((DATETIME)only the date part) is equal to today's date. I don't know how to express the above to get the view designer to accept the required filter.
>
>Could someone please explain the proper usage to accomplish the above filtering.
>
>Thanks in advance!
>Roland
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform