Board index » delphi » Help- Trying to sort Paradox table
Roland Hughes
![]() Delphi Developer |
Sun, 27 May 2001 03:00:00 GMT
Help- Trying to sort Paradox table
I am trying to sort a Paradox 4.5 table by a date field. I am using Any help would be greatly appreciated. Thanks;
[
SampleText.txt 1K ] SELECT Delivery."DDate" , Delivery."ID" , This the button to run the test coding procedure TForm1.Button1Click(Sender: TObject); D1:=StrToDate(Edit1.text); Query1.close; Query1.open; DbiMakePermanent(Query1.handle,'c:\pdoxwin\querytst\Q1Temp.db',true); end; procedure TForm1.Button2Click(Sender: TObject); end. The database is a Paradox 4.5 table and the index'd field is "DDate" I set up two Parameters called "Date1" and "Date2" that are set to date type. The problem I am having is that I can have the parameters or I can have the table registered in the QBE object. I cannot have both. If I set up the parameters and run the test code the database is lost from the QBE. If I put the database in and run the test code I loose the parameters. I do not see why I cannot set up a database and name two parameters and then use them to sort the database as in the SQL code above. The error I get when I run the code with the parameters set is as follows and when I go check the QBE there is no database registered. Project QueryTst.exe raised exception class EDBEngineError with message 'Invalid use of keyword. Token: WHERE. Line Number: 8. Proccess stoped hit run or step to continue. Any hint as to what is going on would be a tremedous help. Roly |