Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 To: Joseph Gomez
  Where is Joseph Gomez?
 manila
 Philippines
 Joseph Gomez
Subject: RE: query error
Thread ID: 462837 Message ID: 462840 # Views: 55 # Ratings: 0
Version: Visual FoxPro 9 Category: Databases, Tables and SQL Server
Date: Tuesday, January 8, 2019 1:21:51 PM         
   



> good day
>
> please help realy need your help
> i have a condition date from and date to and what i want to happen is
>
> date from not greater than 24.00 military time and date from not greater than or equal to date to
> i used date picker calendar
>
> please help
>
> thanks
>
>
> **** VALIDATION
> SELECT * FROM tblaccess WHERE between(ldfrom,datefr,dateto) OR BETWEEN(ldto,datefr,dateto) INTO CURSOR curValidDate
> SELECT curValidDate
> BROWSE TIMEOUT 0.01
> SELECT * FROM curValidDate WHERE (terminal = lcterminalname OR usercode = lcusercode) AND isaccess = .t. INTO CURSOR curTV1
> SELECT curTV1
> BROWSE TIMEOUT 0.01
> SELECT * FROM curTV1 WHERE usercode = lcusercode AND between(ldfrom,datefr,dateto) OR BETWEEN(ldto,datefr,dateto) INTO CURSOR curTV READWRITE
> SELECT curTV
> BROWSE TIMEOUT 0.01
> GO TOP
> SCAN
>

Hi,
what are the values of :
ldfrom, ldto, tblaccess,datefr, tblaccess.dateto
and what are the vartypes of these?
regards,
Koen

ENTIRE THREAD

query error Posted by Joseph Gomez @ 1/8/2019 10:25:19 AM
RE: query error Posted by Koen Piller @ 1/8/2019 1:21:51 PM
RE: query error Posted by Tamar Granor @ 1/8/2019 10:22:04 PM