Hi,
I am writting a small program which I need to dynamically create an sql statement from the contents of a list box i.e.
list box contains 't', 'y', 'x'
sql statement -
select * from table where col1='t' or col1='y' or col1='x'
The problem I am having is how to create this staement and run it. Is there a function in FoxPro that will take a string argurment and run it as a command (like in javascript etc), or is there some other solution that would work.
BTW, it is a pretty large table and a select staement takes about 10 mins to run, so if anyone knows of a better (quicker) way, please let me know.
Cheers,
Martin McCann