Ask the Expert

Can I write code using VB editor to query MS Excel VBA?

I'm currently developing an accounting application using Microsoft's Excel VBA . What I would like to know is if it is possible to write a code using Visual Basic editor to query my database.

    Requires Free Membership to View

Yes, you can use VBA to query most kinds of databases.

DAO can be used to query Jet Databases (MDB files). It is a simple coding style, specifically designed to support the Jet database engine, but adequate for many desktop tasks.

Almost any ODBC compatible database can be manipulated with ADO. This opens nearly all of the client/server databases like MS SQL Server, Oracle, DB2, etc.

For More Information

This was first published in November 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: