Local lcSQL lcSQL = [SELECT * from registration WHERE registration.flddate between ]+ TransformToDate(thisform.text1.value)+[ and ]+TransformToDate(thisform.text2.value)TransformToDate is your own UDF that makes a given DATE value in appropriate string format for your database (if you use SQL Server it will give some different result than for VFP tables) For that function you may uilize the DATE, DAY, MONTH, YEAR VFP functions.
Make solutions, not programs!