Issue with TFDQuery on a form connecting to a datamodule


I have a datamodule with a TFDConnection connecting to a SQLLite db.

Queries on the datamodule work fine. But if I have a query on a form connecting to the connection on the datamodule when setting Active to true I get the error:

exception message : [FireDAC][Comp][Clnt]-512. Connection is not
defined for [FDQuery1]. Possible reason: Connection and ConnectionName
property values

This happens in design time.

This is with Delphi Tokyo in a Firemonkey mobile app.

Comments are closed.