I have created a Form with 4 DBExpress elements. Until the db elements was in the form everything worked fine. The problem born when I created a DataModule to have it more tidy. I already did 'use unit' and selected the DataModule but when I run the application it give me errors when I attempt to use the db elements.
All I do is to click from the Form to a button having this code:
procedure TForm1.Button1Click(Sender: TObject);
begin
SQLQuery1.Close;
SQLQuery1.SQL.Clear;
SQLQuery1.sql.add('select * from help');
SQLQuery1.ExecSQL;
end;
Every line containing SQLQuery1 (element inside the DataModule) has an error. How do I make the DataModule elements recognized by the Form?