0

Hi I am trying to execute a TADODataSet by clicking on a button. As of now. whenever I run my delphi program my TADODataSet automatically activates and runs its corresponding stored procedure in sql. I want to be able to press a button on a form in order to execute my TADODataset and NOT have it run automatically.

I have been messing around with callbacks to get this to work but I have not had any success. Any help or suggestions will be greatly appreciated.

Thank you

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by Wolfgan
0

I do not have any code because I do not know what code to use. I have no idea how to begin with this. I just need to be able to press a button to activate my TADODataSet instead of having it run automatically

0

Why do not you read the help?

In design time put Connection property to false. Then when you create a form need to call Open or set the Connected property to true.

ADOConnection1.Open;
ADODataSet.Open;

Edited by Wolfgan: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.