Re:ADOQuery how work cashed update like TQuery
Quote
Alfred Obermayer <a.oberma...@cdnet.at> wrote in message
news:3c6b6bce$1_2@dnews...
Quote
> Andy wrote:
> >> In that case, it sounds like you need to be using a calculated field
and
> >> setting it's value in the OnCalcFields event.
> Hi Andi,
> exact, but how can I create a extra field by defination my first query
==>>
> Sql.Add('Select top 10 Name, ?????);
> if I change the fieldvalue by OnCalcFields or after first query done with
a
> seperate operation is not the question.
> essential at first is, a need a Fied in the queryresult that deal with a
> furthermore operation.
Rather than setting the SQL at run-time, it might be easiest to set the SQL
property at design time to 'Select top 10 Name From Kunden', then use the
Fields Editor (right-click the ADOQuery, choose Fields Editor) to add all
fields (right-click the fields editor, choose Add all fields), then add a
calculated field (right-click the fields editor, choose New field then
create a field of type Calculated). If you really want to add a calculated
field at run-time, this might help:
http://groups.google.com/groups?hl=en&threadm=8d40jto8jccf6jjmkef0725...
4v62%404ax.com&rnum=1
Andy Mackie.