TAILIEUCHUNG - Microsoft Office 2003 Super Bible phần 7

Đối với chương này, bạn sẽ cần phải đảm bảo rằng các thư viện tham khảo một số hoạt động. Bạn có thể không ban đầu có bốn tài liệu tham khảo có sẵn (kiểm tra) sau đây: Thư viện 2,7 Thư viện từ | 356 Part II Collaborating and Integrating with Office 2003 For this chapter you will need to make sure that several reference libraries are active. You may not initially have the following four references available checked Microsoft DAO Object Library Microsoft ActiveX Data Objects Recordset Library Microsoft Word Object Library Microsoft Office Object Library If these libraries aren t active or visible at the top of the list find them in the selection list box by scrolling to them and then check them on. After you reference an application for Automation you can explicitly dimension any object variable in that reference library. The New object coding help feature displays the available objects as you type as shown in Figure 15-3. In addition after you have selected the primary object and have entered a period . the help feature of Access enables you to select from the available class objects see Figure 15-4 . Late binding an object If you don t explicitly reference an object library by using the References dialog box you can set an object s reference in code by first declaring a variable as an object and then using the Set command to create the object reference. This process is known as late binding. To create an object to reference Microsoft Word for example you can use the following code Dim WordObj As Object Set WordObj New The Set command is discussed in the next section. Tip If you create an object for an application that is not referenced no drop-down help box such as A the ones shown in Figures 15-3 and 15-4 will display. Chapter 15 Exchanging Access Data with Office Applications 357 Microsoft Visual Basic CHAP33Start Modulel Code _ -5 X I General 0- - n I File Edit View Insert Debug Run Tools Add ins Window Help I __ JCreateWorkOef Option Compare Database Private Sub CreateWorkRef I Dis MyWordObo As New Wo End Sub ổi TableDef 1 â TextBox Toggle Button 3 User l VBA WebOptions IVIWord V a . Figure 15-3 When an .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.