I don't think VFP support BETWEEN ... and ...
Try this:
create view myview as select * from mytable where BETWEEN(date_booked, ?datefirst,?datelast)
>Hi,
>
>I have create a parametrized view in my vfp database, something like:
>create view myview as select * from mytable where date_booked between ?datefirst and ?datelast.
>
>I tried to retrieve the records from this view through OLEDB by using parameter objects with names datefirst and datelast, but the query keeps saying that 'variable datefirst is not found'. Am I doing something wrong or is it just not possible to do this?
>
>Thanks,
>
>Auke
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.