Ed,
Is the field really "date"? Have you tried:
DELETE FROM ALIAS() WHERE date BETWEEN year2 AND year1
Sometimes SQL statements require SQL syntax - the Between() function is strictly FoxPro.
Also is the tablename the same as the current ALIAS(), this statement wants a REAL table name not just an alias.
check your field type it may be T type which is data and time together. If this is the case use TTOD(table date field )
Returns a Date value from a DateTime expression
Attitude is Everything
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.