Subject | Re: SQLWhereItems Problem |
---|---|
Author | paulhope@allcomm.co.uk |
Post date | 2001-02-16T12:57:23Z |
Set
procedure TfNewPickList.ibMarkPrepareSQL(Sender: TIB_Statement);
begin
ibMark.SQLWhereItems.Text:=WhereItemsString;
end;
which is the same as the one for the select query
Regards
Paul
> Could this be as simple as you assigning the UpdateSQL propertyrather than
> the SQL property?I dont think so, this is the assignment
>
> Set
procedure TfNewPickList.ibMarkPrepareSQL(Sender: TIB_Statement);
begin
ibMark.SQLWhereItems.Text:=WhereItemsString;
end;
which is the same as the one for the select query
Regards
Paul
>and
> At 12:34 16.02.2001 -0000, you wrote:
> >First of all - late but sincerely meant congratulations to Jason
> >the other contributors to IBO on the Delphi Informant ReadersChoice
> >2001 award!printing
> >
> >I have a unit which prints documents. It is passed a string which
> >contains the SQLWhereItems.Text from another unit. This string is
> >then stored in a local variable in the print form for use by the
> >queries OnPrepares.
> >
> >The first TIBOQuery which extracts the document headers for
> >works fine. When printing is complete another query is executedthe
> >with an update statement to mark the documents as printed. This
> >creates an error 'unknown token line 2 char 1 WHERE'. Examining
> >SQLMonitor output shows that the SQL has been created as follows
> >
> >line 1 - blank
> >line 2 - WHERE ... all the correct conditions
> >line last - UPDATE table set . . .
> >
> >the SQL appears to be upside down with the update statement at the
> >end :-/
> >
> >Any ideas?
> >
> >D5 V3.6A
> >
> >Regards
> >Paul