devxlogo

Data Control vs. DAO

Data Control vs. DAO

Question:
When, in general, is it best to use DAOs as opposed to data controls? We are building VB clients for Access and MS SQL Server.

Answer:
If you plan it right, you can use a combination of data controls AND theDAO objects. Under Visual Basic 4.0 and above, you can set the Recordsetproperty of the data control to a recordset you have created using theDAOs. For instance, you may want to fill a drop-down list from a database. Simply set the recordset to one retrieved from the current database. Ingeneral, DAO gives you a lot more control over how your application works,but the data control still has a lot of power hidden in it.

See also  5 Tips for Choosing the Right Medical Software for Your Practice
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist