G'Day, With D3, BDE5.01 & Paradox can you use the following as part of a TQuery.Filter? CAST(OverID AS CHARACTER(3))>='104' ie can you use functions in a filter? If so any ideas as to why this is giving me the above error?? TIA ------------------------------------------------------------------------ --Donovan Donovan J. Edye [www.edye.wattle.id.au] Namadgi Systems, Delphi Developer Web: www.namsys.com.au E-Mail: [EMAIL PROTECTED] Voice: +61 2 6285-3460 Fax: +61 2 6285-3459 TVisualBasic = Class(None); ------------------------------------------------------------------------ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz