Subject Re: [ib-support] Works in IBConsole but not IBX??
Author Doug Chamberlin
At 9/30/2001 02:45 PM (Sunday), Wayne wrote:
>[snipped code example] including
>>
>> ViewQry.SQL.Add('where shift_date > :HisDate');
>> ViewQry.ParamByName('HisDate').AsDate := StartDate - 10;
>In IBConsole it works Fine, but in IBX I get the following error
>message...

I have never used IBX so I cannot help figuring out how it is failing for
you. However, if you want a work around, there is nothing wrong with coding
the above two lines as

ViewQry.SQL.Add(
Format('where shift_date >
''%s''',[FormatDateTime('mm/dd/yyyy',StartDate - 10)]));

This eliminates the used of parameters in the query. It should work if the
problem lies in how the param is being handled by IBX.