Subject | Re: [ib-support] Query question |
---|---|
Author | Lucas Franzen |
Post date | 2001-06-01T11:08:55Z |
Nico Callewaert schrieb:
If your SQL has a > (greater) in the comparison then the new Param
should just be the current ItemNo, not current ItemNo + 1....
Luc.
>Okay, this procedure was just a quick and dirty example.
> The problem is this procedure :
>
> procedure getNextRec;
> var currID: Integer;
> begin
> with mySingleQuery do
> begin
> currID := FieldByName ( 'ItemNo' ).AsInteger;
> ParamByName := currID + 1; <============================== + 1
> doesn't always work
> // with RefreshOnParamChange set to TRUE that should be all
> end;
> end;
If your SQL has a > (greater) in the comparison then the new Param
should just be the current ItemNo, not current ItemNo + 1....
Luc.