Problem with ADOComponents.DefaultDatabase
I'm having big trouble trying to use ADOComponents.DefaultDatabase.
I can set the property at designtime, but at runtime it's always nil.
Any Ado component I add to the report can't find the connection.
I've also put a
ADOComponents.DefaultDatabase:=myConnection;
in a Form_create event, and the defaultdatabase is nil when I start creating a new report.
Is there a way to make FR4 aware of my Adoconnection (myConnection) ?
Any AdoQery or AdoTable can't see the connection, and is not initialized with Defaultdatabase.
Setting a breakpoint in
TfrxADOQuery.SetDatabase()
I can see that ADOComponents.DefaultDatabase is nil at runtime.
I can set the property at designtime, but at runtime it's always nil.
Any Ado component I add to the report can't find the connection.
I've also put a
ADOComponents.DefaultDatabase:=myConnection;
in a Form_create event, and the defaultdatabase is nil when I start creating a new report.
Is there a way to make FR4 aware of my Adoconnection (myConnection) ?
Any AdoQery or AdoTable can't see the connection, and is not initialized with Defaultdatabase.
Setting a breakpoint in
TfrxADOQuery.SetDatabase()
I can see that ADOComponents.DefaultDatabase is nil at runtime.
Comments
What is the type of myconnection object did you use ?