trƯỜng Đh cÔng nghiỆp tp. hcm tt cntt microsoft access 2003 giáo viên: trần thị kim chi
TRANSCRIPT
![Page 1: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/1.jpg)
TRƯỜNG ĐH CÔNG NGHIỆP TP. HCMTT CNTT
MICROSOFT ACCESS 2003
Giáo viên: Trần Thị Kim Chi
![Page 2: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/2.jpg)
Program of subject
Contents Theory Practice
Chapter I: Introduce MS Access 3 3
Chapter II: Table 3 6
Chapter III: Query 6 12
Chapter IV: Form 6 12
Chapter V: Report 3 6
Chapter VI: Macro - Menu 6 12
Chapter VII: Module 3 9
30 60
![Page 3: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/3.jpg)
References
Access 2003 Personal Trainer by CustomGuide Inc. Microsoft Access 2003 Inside Out by JohnV. Leiscas. Microsoft Office Access 2003 - The Complete Reference
by Virginia Andersen. Microsoft Office Access Help (Online & Offline) Giáo trình & bài tập MS Access 2003 của trường ĐH
Công Nghiệp TP.HCM Giáo trình MS Access 2000 của Nguyễn Thiện Tâm – TT
tin học thuộc ĐH KHTN (3 tập) Các chương trình , bài tập mẫu
![Page 4: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/4.jpg)
Test and Evaluate
Mid Week 6
Final Week 12
Large Practice or Minor Project Week 14
Test
EvaluateLỚP : TCTH35AB+THTH33
LỚP : TCTH35C
![Page 5: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/5.jpg)
Chapter I
1. Introduction to Databases
2. Introduction about MS Access 2003
INTRODUCE ABOUT MS ACCESS 2003INTRODUCE ABOUT MS ACCESS 2003
![Page 6: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/6.jpg)
Introduces to Database
Database is a collection of information that is organized into a list
and stored in a manner similar to a file cabinet as figure 1.
A database program lets you:
Store Information.
Find Information.
Analyze and Print Information.
Manage Information.
Share Information.
1.1) What is Database
Figure 1: Similar to a file cabinet...
![Page 7: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/7.jpg)
Example: Information of the Student is stored in a database as
following:
Introduces to Database
![Page 8: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/8.jpg)
DBMS is a computer software program that manages the storage of data in a computer and the retrival of information from that database.
Database management includes the following processes: Creating a database table to store the data. Appending or Adding data to the table in the form of records. Saving the database table so the added records are available at a later
time. Retrieval of the data for display on a screen or printing. Modification of the data to correct input errors or to update data. Deletion of data that is no longer required.
A DBMS organises the data stored in a database is called the data model.
Introduces to Database
1.2) Database Managerment Systems (DBMS)
![Page 9: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/9.jpg)
A RDBMS is a database in which tables may be joined, linked or related. Examples of commerical database packages using this model include:
Dbase version 7 Microsoft Access 2003 FoxPro version 5
More commonly encountered in medium to large enterprise enviromments are the following RDBMS: Oracle, Sybase, Ingres, Informix, Microsoft SQL Server.
RDBMS model: Table, column, row (relation, field, record) Key and Relationship
Introduces to Database1.3) Relational Database Managerment Systems (RDBMS)
![Page 10: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/10.jpg)
Example: Table represent information of the student as following:
StudentID StudentName Birthday Sex Class
CDTH001 Trần An 03/10/82 Male CDTH4A
CDTH002 Lê Hoàng 23/11/84 Female CDTHUC7
Introduces to Database
![Page 11: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/11.jpg)
Để quản lý hóa đơn bán hàng ta cần xây dựng một CSDL gồm các bảng sau :
SanPham: Represent information of the products as Masp, Tensp, Donvitinh, DongiaMua, Slton.
KhachHang: Represent information of the customers Makh, Tenkh, Diachi, DienThoai.
Nhanvien: Represent information of the employees as Manv, Honv, Tennv, Phai, Ngaysinh, Diachi, DienThoai, Hinh.
Hoađon: Represent information of the invoice as Mahd, LoaiHD, Makh, Manv, NgaylapHD, NgayGiaoNhanHang, DienGiai.
Chitiethoadon: Represent information of the detail invoice as Mahd, Masp, Soluong, DongiaBan.
Introduces to Database
![Page 12: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/12.jpg)
Introduces to Database
![Page 13: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/13.jpg)
Access 2003 is a Windows based application therefore Windows must be running before Access 2003 can be started.
Features of Access 2003: MS Access 2003 is a DBMS, integrate tools to build small and
simple database application. Ability to display database object dependencies. MS Access has ability convert data between another application as
Word, Excel, Dbase, Fox, HTML,… MS Access can run in network envoriment. XML Support. Data can used by many people that ensure securities.
Introduces about MS Access 2003
![Page 14: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/14.jpg)
Setup configuration Personal Computer with a Petium 100 processor. A minimum of 32MB of RAM. 60 MB of disk space for a complete installation. 60 MB of disk space for a typical installation. Windows operation system.
Setup Click Start Select Run Select drive contain
MS Access software Select Setup.exe file.
Introduces about MS Access 2003
![Page 15: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/15.jpg)
Introduces about MS Access 2003
Starting Access 1. Click the Start button on the taskbar.
2. Point to All Programs.
3. Click Microsoft Office.
4. Click Microsoft Office Access 2003.
![Page 16: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/16.jpg)
Introduces about MS Access 2003
Use the Task Pane
Connect with Web
Open a Database
Create a new Database
Title bar
Menu bar
Toolbar
![Page 17: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/17.jpg)
Introduces about MS Access 2003
1) Create A New Database (.Mdb): • Click Create a new file • Or Click File menu Select New • Or Click New button • Or Press CTRL+N.
Create a Blank Database
Create a New DatabaseFrom an Existing Database
Create a blank DatabaseOr a database according to sample of Access
![Page 18: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/18.jpg)
Select drive/folder contain Database
Enter File Name
Click Create
Introduces about MS Access 2003
![Page 19: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/19.jpg)
Introduces about MS Access 20032) Open A Database (.Mdb):
1. Click the Open button on the Database toolbar Or Click More…from Task Panel Or Click file name in Task Panel Or CTRL+O. 2. Click the Look In list arrow, and then click the
appropriate folder containing the database you want to open.
3. Click the database you want to open.4. Click Open.
![Page 20: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/20.jpg)
Tên tập tin cơ sởdữ liệu
Select Folder
File Name
Introduces about MS Access 2003
![Page 21: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/21.jpg)
The Microsoft Access User Interface
Introduces about MS Access 2003
![Page 22: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/22.jpg)
Introduces about MS Access 2003
The Groups bar allows you to group database objects the way you want them, creating shortcuts to objects of different types.
The Objects bar lists the types of objects in a database
![Page 23: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/23.jpg)
Introduces about MS Access 2003
Table (Design View)
![Page 24: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/24.jpg)
Introduces about MS Access 2003
Table (DataSheet View)
![Page 25: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/25.jpg)
Query (Design View)
Introduces about MS Access 2003
![Page 26: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/26.jpg)
Query (Datasheet View)
Introduces about MS Access 2003
![Page 27: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/27.jpg)
Introduces about MS Access 2003
Form (Design View)
![Page 28: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/28.jpg)
Form (Datasheet View)
Introduces about MS Access 2003
![Page 29: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/29.jpg)
Report (Design View)
Introduces about MS Access 2003
![Page 30: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/30.jpg)
Report (Print PreView)
Introduces about MS Access 2003
![Page 31: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/31.jpg)
Convert Access Database
Compacting and Repairing
Setting a Database Password
Encoding and Decoding a Database
Change interface of Database Window
Closing a Database and Quitting Access
Managing a Database
![Page 32: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/32.jpg)
Managing a Database
Convert Access Database
1. Click the Tools menuOptions.
2. Click the Advanced tab.
3. Click the Default File Format list arrowformat.
4. Click OK.
![Page 33: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/33.jpg)
Managing a DatabaseConvert a Database to Another Version of Access
1. Click the Tools menu Database Utilities Convert Database.
2. Click the command with the version in which you want to convert the database.
3. Enter the name for the converted database.
4. If necessary, click the Save In list arrowselect the drive and folder where you want to save the database.
5. Click Save.
![Page 34: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/34.jpg)
Managing a Database
1. Make sure all users close the database.
2. Open the database with administrative privileges.
3. Click the Tools menu Database Utilities.
4. Click Compact And Repair Database.
Compacting and Repairing
![Page 35: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/35.jpg)
Setting a Database Password
Enter Password
Confirm Password
Managing a Database
• Open Database (Select Open Exclusive)• Click Tools menu Security Set Database Password
![Page 36: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/36.jpg)
Deleting a Database Password
Enter Password
Managing a Database
• Open Database (Select Open Exclusive)• Click Tools menu SecurityUnSet Database Password
![Page 37: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/37.jpg)
Encoding and Decoding a Database
Managing a Database
1. Make sure all users close the database.
2. Click the Tools menu Security Encode/Decode Database.
3. Locate and select the database file you want to encode.
4. Specify a name and location for the encoded version of your database file.
5. Click Save.
![Page 38: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/38.jpg)
Click View Menu Select:
Database objects (Tables, Queries, Forms, Reports, Macros, Modules) :
select object in a database.
Large icon, Small icon, List, Detail: view objects by another ways.
Arrange Icons : sort objects
Click Edit Menu Select
Rename/Delete/Copy/Cut/Paste Object
Click Window Menu Select
Hide/unhide : Hide/Unhide database window.
Managing a Database
Change interface of Database Window
![Page 39: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/39.jpg)
Close a Database Click the Close button on the Database window. If necessary, click Yes to save any changes you made
or No to ignore any changes. Quit Access
Click the Close button on the Access window title bar. If necessary, click Yes to save any changes you made
or No to ignore any changes.
Managing a Database
Closing a Database and Quitting Access
![Page 40: TRƯỜNG ĐH CÔNG NGHIỆP TP. HCM TT CNTT MICROSOFT ACCESS 2003 Giáo viên: Trần Thị Kim Chi](https://reader036.vdocuments.mx/reader036/viewer/2022062301/56649ece5503460f94bdb5bf/html5/thumbnails/40.jpg)
Thank you