- Microsoft Access is a powerful program to create and manage your databases. It has many built in features to assist you in constructing and viewing your information. Access is much more involved and is a more genuine database application than other programs such as Microsoft Works.
This tutorial will help you get started with Microsoft Access and may solve some of your problems, but it is a very good idea to use the Help Files that come with Microsoft Access, or go to Microsoft's web site located at http://microsoft.com/office/access/default.htm for further assistance.
First of all you need to understand how Microsoft Access breaks down a database. Some keywords involved in this process are: Database File, Table, Record, Field, Data-type. Here is the Hierarchy that Microsoft Access uses in breaking down a database.
Database File: This is your main file that encompasses the entire database and that is saved to your hard-drive or floppy disk.
Example) StudentDatabase.mdbTable:A table is a collection of data about a specific topic. There can be multiple tables in a database.
Example #1) Students
Example #2) TeachersField:Fields are the different categories within a Table. Tables usually contain multiple fields.
Example #1) Student LastName
Example #2) Student FirstNameDatatypes:Datatypes are the properties of each field. A field only has 1 datatype.
FieldName) Student LastName
Datatype) Text
This tutorial will help you get started with Microsoft Access and may solve some of your problems, but it is a very good idea to use the Help Files that come with Microsoft Access (or any program you use for that matter), or go to Microsoft's web site located at http://microsoft.com/office/access/default.htm for further assistance.
Starting Microsoft Access
- Two Ways
- Double click on the Microsoft Access icon on the desktop.
- Click on Start --> Programs --> Microsoft Access
Creating New, and Opening Existing Databases
- Create a New Database from scratch
- Use the wizard to create a New Database
- Open an existing database
Back to top
Create a database using the Database Wizard
Back to top
Create a database without using the Database Wizard
Back to top
Tables
Tables organize data into columns (called fields) and rows (called records).
Back to top
Create a Table from scratch in Design view
- If you haven't already done so, switch to the Database Window You can press F11 to switch to the Database window from any other window.
- Double-Click on "Create table in Design view".
(DESIGN VIEW) - Define each of the fields in your table.
Back to top
Primary Key
- One or more fields (columns) whose value or values uniquely identify each record in a table. A primary key does not allow Null values and must always have a unique value. A primary key is used to relate a table to foreign keys in other tables.
- NOTE: You do not have to define a primary key, but it's usually a good idea. If you don't define a primary key, Microsoft Access asks you if you would like to create one when you save the table.
- For our tutorial, make the Soc Sec # field the primary key, meaning that every student has a social security number and no 2 are the same.
- To do this, simply select the Soc Sec # field and select the primary key button
- After you do this, Save the table
- To do this, simply select the Soc Sec # field and select the primary key button
Back to top
Switching Views
- To switch views form the datasheet (spreadsheet view) and the design view, simply click the button in the top-left hand corner of the Access program.
Datasheet View Design View
Displays the view, which allows you to enter raw data into your database table.
Displays the view, which allows you to enter fields, data-types, and descriptions into your database table.
Back to top
Entering Data
- Click on the Datasheet View and simply start "chugging" away by entering the data into each field. NOTE: Before starting a new record, the Soc Sec # field must have something in it, because it is the Primary Key. If you did not set a Primary Key then it is OK.
Back to top
Manipulating Data
Back to top
Advanced Table Features w/Microsoft Access
- Assigning a field a specific set of characters
- Example) Making a Social Security Number only allows 9 characters.
- Switch to Design View
- Select the field you want to alter
- At the bottom select the General Tab
- Select Field Size
- Enter the number of characters you want this field to have
- Formatting a field to look a specific way (HINT: You do not need to assign a field a specific set of characters if you do this)
- Example) Formatting Phone Number w/ Area Code (xxx) xxx-xxxx
- Switch to Design View
- Select the field you want to format
- At the bottom select the General Tab
- Select Input Mask Box and click on the ... button at the right.
- Select Phone Number option
- Click on Next
- Leave !(999) 000-0000 the way it is. This is a default.
- Click Next
- Select which option you want it to look like
- Click Next
- Click Finish
- Selecting a value from a dropdown box with a set of values that you assign to it. This saves you from typing it in each time
- Example)Choosing a city that is either Auburn, Bay City, Flint, Midland, or Saginaw
- Switch to Design View
- Select the field you want to alter (City)
- At the bottom select the Lookup Tab
- In the Display Control box, select Combo Box
- Under Row Source Type, select Value List
- Under Row Source, enter the values how you want them displayed, separated by a comma. (Auburn, Bay City, Flint, Midland, Saginaw)
- NOTE:This will not alphabetize them for you, so you will have to do that yourself. It should look something like this:
- NOTE:This will not alphabetize them for you, so you will have to do that yourself. It should look something like this:
- Select in the datasheet view and you should see the change when you go to the city field.
Back to top
Relationships
Back to top
Forms
Back to top
Create a Form using the Wizard
Back to top
Reports
Back to top
Create a Report using the Wizard
Back to top
Creating Mail Merge Labels using a Wizard
2 komentar:
Very well described for the new users in access. But there are many errors when you tried to open your database, but one of the following errors comes in front of your screen :
* Unrecognized database format.
* Enter Password (even though no password has been given).
* The Microsoft Jet Database Engine cannot open the file.
* Microsoft Access has encountered a problem and needs to be closed.
There are inbuilt access repair utilities which can help you in repair your corrupted database when you got above mentioned errors.
but sometime these inbuilt access repair utilities are also unable to repair your access database.
So when these access repair inbuilt utilities are failed then its better to use access repair softwares, which are specially designed to repair and recover your corrupted database.
Here is a link : http://www.repair-access-file.com/access-mdb-recovery.php download trial version of access repair software, and scan your database, and analyze your data, if you are able to view your database then buy full version first so that you can recover your database.
Repair your corrupt database then try Recovery for Access tool to repair lost .mdb & .accdb files. It recover various database objects like tables, vies, macros, modules, queries, etc.It supports MS Access 2010, 2007, 2003, 2002 & 2000.
Visit:-
http://www.filesrecoverytool.com/access-file-recovery.html
Posting Komentar