Subject please help
Author Daniel Bertin
Hi all

I have a datamodule with IB_connection, keepconnection =true, connected = true
and IBOtable1

in another form, iboquery1, database name, IB_connection =
datamodule1.IB_connection1
SQL = select * from disp_leg
where fsourcename = :source
and complete = 'N'
order by Fseta
on activate event for the form
if length(datamodule1.IBOtable1.FieldByName('fsourcename').asstring) > 0 then
begin
with form2.IBOQuery1 do
begin
close;
unprepare;
parambyname('source').asstring :=
datamodule1.IBOtable1.fieldbyname('fsourcename').asstring;
prepare;
open;
end;
end;

and then the run time error;

EIB_StatementError with message
'Statement must have an IB_Connection assigned.'


Could someone tell me what my problem is. It seems obvious but??
Thanks
Daniel