Subject Re: [IBO] [IBO[ iboQuery Error Message
Author Helen Borrie (TeamIBO)
At 02:33 PM 24-05-02 +0100, you wrote:
>I have a fairly simple app. A primary form that calls the QuickReport
>print method on a secondary form, with both forms connected to an
>iboQuery residing on a DataModule. The primary form accepts parameters
>which are stuffed into the query, and the results are displayed on a
>dbGrid on the same form. Selecting a button on that form calls the
>QuickReport print method and the results are printed.
>
>All this works as anticipated EXCEPT that immediately after the print
>has been sent to the queue, an EIB_connectionerror is generated that
>says 'Cannot change while connected'
>
>What does this mean? and how do I get rid of it?

It sounds as if some handler somewhere is trying to change a connection
parameter, such as user, password, server, path, role, etc., while the
connection is live. I often use QR with TIBOQuery and I haven't
encountered it...that given, I'm usually using a TIB_Connection rather than
a TIBODatabase...
First place I'd look is in the After.. events of the QR object.

regards,
Helen Borrie (TeamIBO Support)

** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com