Severing the Connection

To close the DAO connection between Visio and the Access database, simply close the database object as in

g_dbsMyDatabase.Close

To terminate the connection between Visio and Access, you simply must quit Access:

accessObjApplication.Quit
Set accessObjApplication = Nothing

The final line ensures that the Access application object goes out of scope and is removed from memory as well as from all objects under the Application object.

In the next chapter, you will learn how to contact Word from Visio. You will also see how to send data from Visio to Word and retrieve information from Word to use in Visio. You will be shown how to query Word for use in your Visio-based application and learn how to sever the connection when ...

Get Professional Development with Visio® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.