Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Syntax in MSQuery
Message
De
26/02/2000 01:30:20
 
 
Information générale
Forum:
Microsoft Office
Catégorie:
Excel
Divers
Thread ID:
00331458
Message ID:
00338008
Vues:
14
Try changing the DATE() to either NOW() or TODAY(). In Fox, DATE() returns the current system date.
TODAY() does the same in Excel. Hope it works for you.
I don't use MS Query. I find it easier to send the data to Excel from FoxPro.

Tom Molloy

>I'm unable to select records of the last 30 days.
>
>I want my query to always return all records of the last 30 days. This statement works in Microsoft Visual FoxPro 5. Yet Microsoft Query "Stops Responding" when trying to finish reading the records from my VFP table.
>
>SELECT vhtckpop.* FROM vhtckpop vhtckpop WHERE (vhtckpop.mfgdate>DATE()-30)
>
>Other VFP functions work well within MSQuery's SQL Dialog Box, at least within the fieldlist.
>
>Is there some other way to specify "Always the last 30 days worth of data"?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform