Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gathering a set of records
Message
From
02/06/1999 14:00:39
 
 
To
02/06/1999 08:54:21
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00224673
Message ID:
00225506
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.

The textboxes should be formatted to accept a date. They currently receive characters. In the form designer, set the initial value to {} and they should work.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform