EricDraven
Programmer
I am having a little problem using a query to return a set of results from a paradox table. Hopefully somebody can point out what I am doing wrong.
The two variables are both of String type and are just user entered dates. The problem is that this query is only returning one record whereas, if I filter a TTable component using the same parameters, I am returned several hundred records (the correct amount). This is the only piece of SQL to be added to my progam before completion and its now driving me nuts.
Knowing me its probably another case of "I cant see the wood for those pesky trees"
When your feeling down and your resistance is low, light another cigarette and let yourself go![[rockband] [rockband] [rockband]](/data/assets/smilies/rockband.gif)
Code:
BookQuery.SQL.Clear;
BookQuery.SQL.Add('Select * from Bookings');
BookQuery.SQL.Add('where BOOKDATE >= ' + QuotedStr(RangeStart));
BookQuery.SQL.Add('and BOOKDATE <= ' + QuotedStr(RangeEnd));
BookQuery.Open;
Knowing me its probably another case of "I cant see the wood for those pesky trees"
When your feeling down and your resistance is low, light another cigarette and let yourself go
![[rockband] [rockband] [rockband]](/data/assets/smilies/rockband.gif)