Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax for finding a particular record
Message
From
07/12/2006 06:08:55
 
 
To
07/12/2006 06:02:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01175528
Message ID:
01175530
Views:
7
>Hi There,
>
>I was wondering if you could help me.
>
>I have a table called "Username" and in that table i am a field called "DOB" which holds the date of birth of all the users. I was wondering wat is the syntax i should use in Command runner to retrieve a particular date from that table. Thanx for the help in advance.

Bilal

If you're in the command window you can enter a valid date like:

ldTestDate = CTOD("01/04/1995")

then retrieve the date as:

Select * from UserName where DOB = ldTestDate

or

Select * from UserName where DOB = CTOD("01/04/1995")

This is using SQL select. It takes more commands, and a pprogram loop, to retrive via native VFP xBase code. Your query is too brief to determine what you want.

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform