Trong Windows XP, bạn nhấn phải chuột lên thư mục và chọn Sharing and Security. Mark Chia sẻ thư mục này trên hộp kiểm tra mạng. Nhập Tên chia sẻ cho thư mục. Xem Hình 13-3. Nếu những người khác sẽ có thể thay đổi, đánh dấu Cho phép người sử dụng mạng để thay đổi tập tin của tôi hộp kiểm tra. | Chapter 15 Exchanging Access Data with Office Applications 361 Just as in Access Word is implicitly using its Application object the command ChangeFileOpenDirectory is really a method of the Application object. Using the following code you create an instance of Word s Application object and call the method of the object Dim WordObj As New C My Documents I When using Automation you should avoid setting properties or calling methods that cause the Tip Automation Server to ask for input from the user Via a dialog box. When a dialog box is dis- A played the Automation code stops executing until the dialog box is closed. If the server application is minimized or behind other windows the user may not even be aware that he or she needs to provide input and therefore may assume that the application is locked up. Closing an instance of an Automation object Automation objects are closed when the Automation object variable goes out of scope. Such a closing however doesn t necessarily free up all resources that are used by the object so you should explicitly close the instance of the Automation object. You can close an Automation object by doing either of the following Using the Close or Quit method of the object consult the specific Automation Server s documentation for information on which method it supports Setting the object variable to nothing as follows Set WordObj Nothing The best way to close an instance of an Automation object is to combine the two techniques like this Set WordObj Nothing An Automation Example Using Word Perhaps the most common Office application that is used for Automation from a database application like Access is Word. Using Automation with Word you can create letters that are tailored with information from databases. The following section demonstrates an example of merging information from an Access database to a letter in Word by using Automation and Word s Bookmarks. Ordinarily you .