Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filter records using BETWEEN
Message
De
25/08/2003 06:12:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/08/2003 04:00:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00822981
Message ID:
00822990
Vues:
19
>i use SET FILTER TO BETWEEN(date,from,to) to filter records whose time fall between from and to.
>
>now, i have a table with datefrom and dateto fields. i have in my form two textfields that accepts from and to.
>
>how do i use BETWEEN to filter my records given the from and to inputted by my users to select all records in my table that is between datefrom and dateto fields?
lcFilter = 'datefrom <= '+;
  trans(dtoc(thisform.txtTo.Value,1),'@R {^9999/99/99')+'} and '+;
  'dateTo >= '+;
  trans(dtoc(thisform.txtFrom.Value,1),'@R {^9999/99/99')+'}'
set filter to &lcFilter
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform