Subject Re: [IBO] please help
Author Jason Wharton
Check your session[props] to see if it will allow default connections. (Are
you even doing anything with session stuff?)
If you have only one connection in the whole app this shouldn't be a
problem.

Perhaps a callstack on the problem would help.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Daniel Bertin" <daniel@...>
To: <IBObjects@yahoogroups.com>
Sent: Tuesday, May 15, 2001 1:44 PM
Subject: [IBO] please help


> 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
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>