Page 258 - Open Soource Technologies 304.indd
P. 258

Event Driven Programming



                            9. Click OK to accept the ConnectionString options you have built.
                           10. Still in the ADO Data Control’s Properties window, navigate to the RecordSource property
                               and click the ellipsis button.
                           11. On the RecordSource tab (see Figure 11.7) of the resulting Property Page dialog box, choose
                               the CommandType (adCmdUnknown, adCmdText, adCmdTable, adCmdStoredProc).



























                             Figure 11.7:  The Property Page Dialog Box for an ADO Data Control’s RecordSource Property.

                           12. Complete the dialog box appropriately for the CommandType that you chose:
                                 • If you chose adCmdText, fill in the text of a valid Select statement in the Command
                                   Text field (see Figure 11.8).



























                               Figure 11.8:  A Valid Select Statement as Command Text for the RecordSource Property.


                          252                    LOVELY PROFESSIONAL UNIVERSITY
   253   254   255   256   257   258   259   260   261   262   263