Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gathering a set of records
Message
From
02/06/1999 08:54:21
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
 
 
To
31/05/1999 21:35:18
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00224673
Message ID:
00225299
Views:
18
>>Craig
>>Why do I get ambiguous date/datetime constant error message and for this rountine I do not want to use the time and etc.
>

>It has to do with your STRICT DATE setting. You can rewrite this as:
>
>SELECT Field1, Field2, Field3 ;
> FROM MyTable ;
> WHERE BETWEEN(DateField, {^1998/05/05, 00:00}, {^1998/05/12, 23:59:59}) ;
> INTO CURSOR MyCursor

Craig
I made a form to pull a report by dates look like this:

SELECT Field1, Field2, Field3;
FORM MyTable;
WHERE BETWEEN(Datefield, CTOD(THISFORM.text1.VALUE),CTOD(THISFORM.text1.VALUE);
INTO CURSOR MYCURSOR

Noe I have a set of record(s)

This is working fine. Is this how I should do this.
Thanks for all your help.
Foxpro is a sweet puppy

'cept it barks every now and then =)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform