Access Creating Databases - Fundamentals

Size: px
Start display at page:

Download "Access 2007. Creating Databases - Fundamentals"

Transcription

1 Access 2007 Creating Databases - Fundamentals

2 Contents Database Design Objectives of database design 1 Process of database design 1 Creating a New Database... 3 Tables... 4 Creating a table in design view 4 Defining fields 4 Creating new fields 5 Modifying table design 6 The primary key 7 Indexes 8 Saving your table 9 Field properties 9 Calculated Field Properties (Access 2010 only) 13 Importing Data Importing data from Excel 14 Lookup fields Modifying the Data Design of a Table...20 Relationships...22 Creating relationships 23 Viewing or editing existing relationships 24 Referential integrity 24 Viewing Sub Datasheets 26. Page 2 of 29

3 Database Design Time spent in designing a database is time very well spent. A well-designed database is the key to efficient management of data. You need to think about what information is needed and how that information is to be used. Objectives of database design The strategy of database design is to accomplish the following objectives: To organise stored information in a timely, consistent, and economical manner. To eliminate, or minimise, the duplication of database content across the organisation. To provide rapid access to the specific elements of information in the database required by each user. To accommodate the possible expansion of the database to adapt to the needs of a growing organisation, such as the addition of new products and processes. To maintain the integrity of the database so that it contains only validated, auditable information. To prevent access to the database by unauthorised persons. Process of database design Planning your database This should be done on paper. Determine the purpose of your database. This will include deciding what information needs to be stored and what will need to be retrieved. What questions will you need to ask your data? Tables Decide what tables you need in your database: A table should not contain duplicate information and information should not be duplicated between Tables. If information needs to be updated, it should only need updating in one place. This is more efficient and also eliminates the possibility of duplicate entries that contain different information. Do not include any calculated data (data that is the result of an 'expression') as this is effectively duplicated information. Each table should contain information about one entity or subject. This enables you to keep information about each subject independently from other subjects. Fields Determine the fields you need in the tables: Each field should relate to the subject of the table. Each field should contain a particular type of information about the table's subject. Create fields so that you can store information in its smallest logical parts (e.g., First Name, Initial, last name, rather than just name). How small this part is will depend on how you will want to sort, filter or query your records. Primary keys Identify which fields have unique values and decide which field(s) will be your primary key(s) Page 1 of 29

4 Data types Determine the appropriate data types for each of your fields (e.g. Text, Currency, Date, etc). Unless you want to use the default data type (Text), you will need to assign a data type to each of your fields. All data in a single field must consist of the same data type. Relationships Identify associations between the tables (when you have more than one Table). You will need to define relationships between your tables so that Access can bring related information from different Tables back together in meaningful ways. Implementing your design The list below is a suggested step-by-step plan: Create a small database based on your design. Specify relationships between the tables Enter a few records in each table. Create rough drafts of your forms and reports to see if they contain the data you need. Try running a few queries to see if you get the answers you expect. Check your database for any unnecessary duplication of data. Check your design with anyone else who will be using your database. Decide who will be able to access the database, the tables, and the fields within the tables. Finally, enter your data into your tables. Create any queries, forms, reports, etc. that you need. Ensure all the data in your database is relevant and kept up-to-date. Remember the Data Protection Act. Page 2 of 29

5 Creating a New Database Before you can create objects such as tables and forms, you must first create the database file in which they will be stored. 1. On the File tab select New. 2. Click on Blank database. 3. In the File Name box, type a name for your database. 4. Click on the browse button to the right of the File name box to browse for a location for your database. 5. Click on Create. A new database will be created with a new default Table. 6. Click on Design View to start working with this Table. Page 3 of 29

6 Tables Tables are the fundamental objects in a database. Without any tables, no data can be stored. To create a table you need to follow these steps: Create the table object Define the fields in the table including their name, data type and description Set the properties for each field Create appropriate indexes Set the primary key Save the table Creating a table in design view 1. On the Create tab, click on Table Design. A new table will appear in design view: The table design view There are three main parts to the design view window. Upper pane For defining fields by name, data type and description (optional). Field properties (bottom left) For defining specific properties for a field. Help (bottom right) As you move around the design view window, contextspecific help is provided here. Upper pane Field properties Help Defining fields Before creating the fields in a table, the following information about naming, data types and descriptions should be considered: Field naming rules and conventions The following conventions should be observed when naming fields: Field names are mandatory. They may contain up to 64 characters. Names may include embedded (but not leading) spaces and punctuation except full stops, exclamation marks and square brackets. You cannot assign the same field name to more than one field in the same table and it is good practice to use a unique field name for each field in the entire database. It is not good practice to include spaces in field names. Instead, use an underscore ( _ ) for spaces to improve the readability of field names. Page 4 of 29

7 Minimizing the length of field names conserves resources and saves typing when you refer to the field name in macros, etc. Avoid specifying a name for a field that could cause a conflict with a built-in Access function or property names (e.g. name, date, etc.). Data types You must assign a field data type to each field in a table unless you want to use the text data type that Access assigns by default. All data in a single field must consist of the same data type. Data Type Text Description Allows text and numbers to be stored. The default length of this field is 50 and is limited to a maximum of 255 characters. Memo Memo fields are usually used for notes, descriptions, etc and can store up to 2 gigabytes of which you can display 65,535 characters in Forms and Reports. Font formatting can also be applied to text in Memo fields. Number Date/Time Currency AutoNumber Yes/No OLE Object Hyperlink Attachment Calculated Lookup wizard Description Allows only numbers to be stored. Used for fields which contain numbers you may wish to use for calculations. Stores date and time formats. Inserts the currency sign and decimal point. Automatically inserts a sequential or random number. You cannot enter data into this field it is automatically filled in as you add records to your table. This data type can be used to create unique numbers to identify records. Is a logical field used when you only have either a Yes or No or a True or False value. Stores pictures, charts, etc. Can be up to 1 gigabyte. Stores a hyperlink address which is a path to an object, document, Web page, or other destination. Allows you to attach specific files to an individual record in a table. Allows you to add a calculation based on values from other fields and/or other values. It is also possible to use functions. This is not really a data type as such but starts up a wizard which allows you to create a field that looks up data either from a list of values you type in or from another table. See page 16 for details on using the Lookup Wizard. This is optional but can be useful for other users of the database. If you enter a description it will be displayed in the status bar at the lower left of the Access window when you select the field for data entry or editing in the datasheet view of a table or the form view of a form. Creating new fields 1. In the first row of the Field Name column, type the name of your first field, following the naming conventions listed above. 2. Press the Tab key to take you to the Data Type field. 3. Click on the drop-down arrow that appears in the box to display a list of data types (see below) and select the appropriate one. 4. Press Tab to take you to the Description field. Type in a short message describing the current field. Page 5 of 29

8 5. Press the Tab key to take you to the next row and back to the Field Name column. 6. Continue as above until you have entered all your fields as shown below. Primary key symbol Row selector Modifying table design It is possible to modify the design of your table and fields at any time by going to design view and making the required changes. However, any changes made after data has been added to the table may cause loss of data. Changes to field names, data types and properties may also impact on other objects which are linked to or based on the table. Adding and removing fields You can modify the structure of your table by adding and removing fields in design view. Note, however, that using the cut, paste or delete functions will remove the field and any data in that field. Selecting fields To select a field, click on the row selector to the left of the field name. To select multiple fields, click on the row selector and drag the mouse down the selector symbols to select additional fields. The screen capture below shows a table with two fields selected. Deleting fields 1. Select the field or fields to be deleted using the row selector. 2. Press the Delete key on the keyboard, select Delete Rows from the Design tab or right-click on the row selector and choose Delete Rows. Inserting fields 1. Click in the field above which you wish to insert a new row. To insert multiple rows, select the required number of rows using the row selector. 2. Select Insert Rows from the Design tab or right click and choose Insert Rows. Moving fields 1. Select the field or fields to be moved. Page 6 of 29

9 2. Click on the selected field(s) and drag the mouse to the new location for the field(s). As you drag, a bold black line will appear indicating where the fields will be moved to if you release the mouse button. 3. Release the mouse button in the appropriate location. Helpful hint: Don t use cut and paste to move fields if you have data in the table as this will delete the data. Changing data type 1. If your table contains data, make a backup copy of the table before you change data types or field sizes. 2. Open the table in design view. 3. Click the data type column of the field you want to change, click the drop down arrow, and select the new data type. 4. Click the Save button on the Quick Access toolbar. Helpful hint: If the data type conversion would result in lost values, Access displays a message telling you that errors occurred during conversion before it actually saves the changes. Click Cancel to cancel the changes. Click OK to continue and save the changes anyway. In large tables, changing a Data Types might take a long time. If you want to cancel the conversion process at any point while it is running, press Ctrl+Break, and then click OK. Changing field size If you convert a large field size setting to a smaller one in a field that already contains data, you might lose data in the field. For example, if you change the field size setting for a text data type field from 255 to 50, data beyond the 50 characters will be discarded. If the data in a number data type field doesn't fit in a new field size setting, fractional numbers may be rounded or you might get a null value. For example, if you change from single to integer data type, fractional values will be rounded to the nearest whole number and values greater than 32,767 or less than -32,768 will result in null fields. The primary key A primary key is a single field or combination of fields in a table that uniquely identifies each record in that table. No two records can have the same value in the primary key field or combination of fields. It is advisable to create the primary key before entering data in a table because Access will prevent duplicate values being created in the designated field. It is particularly important to set a primary key when creating relationships between tables as Access uses it to link tables together. Helpful hint: Records are displayed in primary key order by default. Setting a primary key 1. Click on the appropriate field name and click the Primary key button on the Design tab. 2. The primary key symbol will appear on the button in the row selector box on the appropriate row (see the screen capture on previous page). Setting a multiple field primary key With a multiple-field primary Key, the combination of the contents of all fields included in the key must be unique. For example, for a primary key based on the CourseID and CourseDate fields, the same CourseID and CourseDate combination cannot appear in more than one record. Page 7 of 29

10 1. Click and drag across the row selector of the appropriate fields. 2. Click on the Primary Key button on the Design tab. Indexes Indexing a field speeds up data access when running queries, sorting, and grouping. If you regularly sort or search on certain fields it is a good idea to create an index for this field. However, indexes can slow down some processing activities such as adding or deleting records as the Indexes for many fields need to be updated while performing these operations. For this reason, indexing should be limited to a few important fields. Indexing can also be used to prevent duplicate entries in a field. The options in the Indexed text box are: No (Default) The field is not indexed. Yes (Duplicates OK) The field is indexed with duplicates allowed. Yes (No Duplicates) The field is indexed with no duplicates allowed. If the primary key for a table is a single field it is automatically set to Yes (No Duplicates). Helpful hint: You can't index Memo and OLE Object fields. Creating a multiple-field index A multiple-field index can be created when you wish to be able to sort or filter records by more than one field and where one or more fields may contain the same value and you need an additional field or fields to enable you to distinguish between records. A good example of this might be a two-field index using the first name and surname fields records could then be sorted quickly by last name and then by surname in a multiple sort. 1. Click on Indexes on the Design tab. A list of all current indexes (single and multiple field) will be displayed. 2. Type a name for the index in the Index Name column of the next blank row. (It is advisable to choose a name that includes the names of the fields to be indexed or a similarly descriptive name. 3. In the Field Name column of the same row, choose the name of one of the fields you wish to include in the index. 4. In the next row, leave the Index Name column blank and in the Field Name column choose another field to include in the index from the drop-down list. 5. Repeat this last step (above) until you have included all the fields you want. The screen capture above shows indexes for a table with the following indexes: Last_Name PrimaryKey Full_Name Helpful hint: A single-field index on the Dept field A single-field index on the ID field that was automatically created by setting the primary key to be the ID field. A two-field index on the Last_Name and First_Name fields. Page 8 of 29

11 You can use the Indexes window shown above to view and edit all Indexes in a table, both single and multiple field. Saving your table 1. Click the Save button on the Quick Access toolbar. 2. Type in a name for your table. This can be up to 25 characters long and can include spaces, although these are not advisable. It is a good idea to use the naming convention tbl_tablename, replacing Tablename with the name of the table. Entering data in your table To enter data into your table, switch to Datasheet View and enter data as normal. Switching to datasheet view From the Design or Home tab click on the View button. Field properties Each field has property settings that you can change to alter the way the field looks and behaves. Field properties are optional and can be entered after a field has been created. There are different properties available for different data types. The properties for a particular field are displayed at the bottom left of the design view window when you click in the field and the General tab is selected as shown on the right. Page 9 of 29

12 Field size You can use the Field Size property to set the maximum size of data that can be stored in a field set to text or number data type. Number field size The default setting for a number field is Long Integer. The Field Size property settings and their values are related in the following way: Setting Description Decimal precision Storage Size Byte Stores numbers from 0 to 255 (no fractions). None 1 byte Integer Stores numbers from -32,768 to 32,767 (no fractions). None 2 bytes Long Integer (Default) Stores numbers from -2,147,483,648 to 2,147,483,647 (no fractions). None 4 bytes Single Stores numbers from E38 to E bytes Double Stores numbers from E308 to E bytes Text field size The default setting for a text field is 50. You can reset the Field Size for anything between 0 and 255. Helpful hint: Use the smallest possible Field Size properties setting for number fields because smaller data sizes can be processed faster and require less memory. You can't use Undo to undo changes to a table's design after saving it in Table design view. Format The Format options also vary depending on the Data Type set. The format of a field only affects the way the data is displayed: Access will still store the data in the same way. Formatting dates and numbers Click in the Format box and select an appropriate format from the drop-down list: Page 10 of 29

13 Formatting text There is no drop-down list for fields with a data type of Text. However, you can type in formatting options. For example: Less than [<]: converts all text in the field to lowercase Greater than [>]: converts all text in the field to uppercase Decimal places For Number or Currency fields, you can specify the number of decimal places allowed for a field between 0 and 15. Input masks An input mask is used to provide some control over what values can be entered. They are primarily used in Text and Date/Time fields, but can also be used in Number or Currency fields. Input Mask are used when data is entered in a fixed pattern of numbers, letters, spaces etc., such as a National Insurance number but is unsuitable where the pattern varies (e.g. postcode or telephone number). When you click in the input mask area, a build button appears on the right. Clicking this button will enable the Input Mask wizard, which will help you select an appropriate input mask for your field. Build button You can use the following characters to control data entry: Character Allows Required/Optional only Required 9 Digit or space Not required # +/-, digit or space Not required L Letters A-Z Required? Letters A-Z Optional A Letter or digit Required a Letter or digit Optional & Any characer or space Required C Any characer or space Optional > All following characters converted to uppercase < All following characters converted to uppercase \ Displays the following characers as type For example: an input mask for an NI Number would be: >LL000000>L Entry will be restricted to two letters, followed by six numbers, followed by one letter. The > symbol converts the letters to uppercase. To find out more about how to create input masks, click in the Input Mask area and press F1. Page 11 of 29

14 Caption This is an optional label that can be used to replace the field name in forms and reports. The caption will also appear as the column heading in datasheet view in place of the field name. Default value If you type in a default value, this is automatically entered in the field for each new record. When new records are added, the default value can be kept or changed. Helpful hint: You can enter Date() in the Default Value box of a date field to enter the current date automatically when data is entered. Validation rules Validation rules will automatically check for any particular words or phrases that are being entered into a field. If the match is not exact to that specified in the validation rule, then the information will not be accepted into the field and an error message will appear explaining why the data could not be accepted. When you add words in the validation rule area that you want accepted, separate them with OR. For example: Mr OR Mrs OR Ms OR Miss OR Dr. Another example, to force entry of Exeter, Exmouth or Sidmouth: In( Exeter, Exmouth, Sidmouth ) Helpful hint: You can use symbols and words such as <, >, =, OR and AND or refer to other field names when creating validation rules. Validation rules can also be set for tables and records, as well as fields. Example to restrict values to lower than 500: <500 Example to restrict values to between 1 and 10 inclusive: Between 1 and 10 Or the following would also work: >=1 and <=10 Validation text This property is only relevant if you have set a validation rule. In the Validation Text area, type in the message you want to appear for the user if the validation rule is broken. Required This can be set to Yes or No to specify whether or not the field is compulsory (i.e. whether a value must be entered in the field). Text Align (For Memo fields - only in Access 2007) This determines how data is aligned horizontally in a cell. By default this is set to General which will align text on the left and dates and numbers on the right. Changing the Text Align value will affect the alignment of text in all Objects based on the Table (Forms, Reports etc.). Text Format This is only available in Memo fields and allows you to choose whether you store data as Plain Text or Rich Text. The Rich Text option allows you to format text using bold, underline etc. Text is stored as HTML. Page 12 of 29

15 Calculated Field Properties (Access 2010 only) Expression This is where you enter the expression which determines the value in this field. This can include values from one or more fields, operators, functions etc. For example you could create an expression that works out the length of time someone has worked for a company by calculating the difference between the date they were employed and today s date. Click on the Build button Result Type to create the expression using the Expression Builder. This is only available for Calculated fields and this is where you choose the data type for the value in the calculation field. Additional field properties will be available for the Calculated field depending on which data type is chosen. Page 13 of 29

16 Importing Data If you have existing data in an acceptable form, you can import it into Access using the Import wizard. This might be a text file, a spreadsheet or another database. For example, data can be imported from an Excel spreadsheet to create a new table in your database or to append data to an existing table the columns become the fields and the rows become records in the new table. Importing data from Excel Preparing to import from Excel The spreadsheet data should be organised in the following way: The first row of the worksheet should contain the column headings that will become your field names. You should therefore ensure that these observe Access field naming conventions. See page 4 for more information. There should be no blank rows in the dataset, particularly between the column headings and the first row of data. There should be no other data on the worksheet apart from the dataset. To append records to an existing table, the field names and data types must match the fields in the table to which you wish to append the record. Appending records is not covered in this workbook. Importing data to create a new table 1. Go to the External Data tab. 2. Click on the Import Excel spreadsheet button 3. Use the Browse button to locate the folder that contains the file with the data you want to import. The option to Import the source data into a new table in the current database is selected by default. 4. Click OK. 5. The wizard will automatically select the first worksheet to import. If necessary, select a different worksheet: 6. Click Next. Page 14 of 29

17 7. If not already ticked, tick the First Row Contains Column Headings to enable Access to set up the field names for your table and click Next. 8. You now have the option to add indexes to fields, change data types or to choose not to import a specific field by selecting each field in turn and changing the Field Options above. However, these can be changed once the table has been created. 9. Click Next. 10. You can now allow Access to add a primary key field with an AutoNumber data type or to use an existing field. Whether you have a suitable field will depend on the specific data you are using. 11. Click Next. 12. The final step is to name your table. Access will offer the name of the Excel worksheet by default, but this can be changed if you wish. 13. Click Finish. The table will now be created. Helpful hint: On the last screen there is an option to Save Import Steps. This allows you to save the process so that it can be repeated in future. So for example, you could repeat the above process when new wards are created. Click on Saved Imports on the External Data tab to access any previously saved processes. Page 15 of 29

18 Lookup fields A lookup field is a field which looks up its values from a particular source. This might be a set of values from a field in another table or query (a record source) or a set of values which you type in (a value list). When entering data in datasheet view, the values appear in a drop-down field known as a combo box. Creating a lookup field from a record source in another table automatically creates a relationship between the two tables in a similar way to creating relationships between tables in the Relationship Window. However, no referential integrity rules will be applied. Advantages of using a lookup Lookups make data-entry easier and reduce the chances of errors caused by mistyping. They can also be used to restrict the data that can be entered in a field by limiting data-entry to the values on the drop-down list. Using a table or query as a lookup is particularly useful, because when you change the values in the table upon which the Lookup is based, the values in the drop-down list in the lookup field are also updated. Lookup tables A lookup table is a table which is created with the specific purpose of being used to create values for a drop-down list in another table. A lookup table will have a One-to-Many relationship with the related table. For example, a lookup table might contain a list of wards which will appear as a drop-down list in the patients table. A lookup table may also contain additional fields with further information about the records. For example, the ward lookup table mentioned above might also contain information about number of beds, location etc. of each ward. More than one field can be added to the drop-down list that displays for the user in the Datasheet view of the table. However, only the value in the linked field from the lookup table will actually be stored in the related table (e.g. the field containing the ward name). This field should be unique and will usually be the primary key field in the lookup table. Using the lookup wizard The easiest way to create a lookup field is to use the Lookup wizard. This appears as a Data Type option in Table Design view but isn t a data type as such. Choosing this option invokes the lookup wizard which guides you through the process of creating your Lookup field. In the Data Type column for the relevant field, select Lookup Wizard. The first page of the Lookup wizard will appear as shown. Creating your own value list 1. Select I will type in the values that I want and click Next. 2. Enter the number of columns you want in the list in the Number of columns box. 3. Click in the first row of the Col 1 column and type in your first value. 4. Press the Tab key to move down to the next row and type in your next value. 5. Continue until all your values have been entered and click the Next button. Page 16 of 29

19 6. Ensure the correct field name is displayed for your lookup column and then click Finish. The lookup field will be created as shown in Datasheet view on the right. Helpful hint: The Data Type for the field is set to Text by default. Creating a lookup based on another table 1. Invoke the Lookup Wizard as described previously. 2. Select I want the lookup column to look up the values in a table or query and click Next. 3. Select the table you wish to use as your lookup table and click Next. 4. Select the fields you wish to include in your drop-down list by clicking on the field and then clicking on the button. Helpful hint: The first field you select should always be the field you wish to use to link to the related table (usually the primary key field). You can also add additional fields to be displayed in the drop-down list. 5. Click on Next. The data in the field(s) you selected will be displayed in columns as shown. You can re-size the columns as you would in a table in Datasheet view. Bear in mind that additional records added to the lookup table will need to fit the columns. 6. The Hide key column check box appears above the columns if the first column is the primary key field in your lookup table. Tick this column to hide the primary key value in the drop-down list. If, for example, the primary key is an AutoNumber and therefore not meaningful when entering data, you may wish to hide it. Only the other selected fields will appear in the drop-down list in Datasheet view. 7. Click on Next. 8. Ensure the correct field name is displayed for your lookup column and then click Finish. The lookup field will be created. Helpful hint: The data type for the field is set to the same data type as the linked field from the lookup table by default. The values will appear in the drop-down list sorted in the order of the linked field by default. Page 17 of 29

20 Editing the lookup properties of a field Once a lookup field has been created you may want to make changes to it. For example, you may wish to change the width of the columns in the drop-down list or restrict the user to entering only values which appear on the list. 1. In Table Design view, click on the relevant lookup field to select it. 2. Click on the Lookup tab in the Field Properties pane: Changing column widths The Column Widths box lists the widths of the columns displayed in the combo box drop-down list separated by semi-colons. If there is a primary key column and it is hidden, this is displayed first with a size of zero. To display the hidden column: Click in the box and change the value to something appropriate greater than zero. To increase or decrease a column width: Click in the box and modify the size of the appropriate column. Note that the combined width of all the columns is dictated by the List Width property so you may need to alter this as well. Modifying the row source If the Row Source Type is Value List, the Row Source Field Property box will list the values you typed in separated by semicolons. You can modify the value list by adding new values (always followed by semicolons) or editing existing ones. If the Row Source Type is Table/Query the Row Source Field Property box will contain the code that Access uses to define which fields are included in the lookup field. To modify the row source: 1. Click in the Row Source box. The Build button will appear. 2. Click on the Build button. The query that the lookup field is based on will appear. 3. Modify the query as required.* 4. Click on the Close button to close the query 5. When prompted, click Yes to save the changes you have made. *For example, to change the sort order of the drop-down list: 1. Click in the Sort row for the relevant field. 2. Select Ascending or Descending from the drop-down list. Limit to list Build button This indicates whether the user can enter their own values in the lookup field or whether they are limited to those on the drop-down list. This is set to Yes by default if the bound column of the lookup field is a primary key and No by default if the bound column is not a primary key or if the lookup is based on a value list. Page 18 of 29

21 For example, a lookup field in tbl_nurse which looks up Ward information from tbl_ward would, by default, have the Limit to List property set to Yes if the bound column is WardNumber (the primary key in tbl_ward). You can change the Limit to List property if required. Helpful hint: You cannot change the Limit To List property to Yes if the bound column is hidden. Allow Value List Edits and List Items Edit Form Set Allow Value List Edits to Yes to allow users to make changes to the values on the drop-down list whilst they are entering new records. If the drop-down list is linked to a table or query, you can specify a form under List Items Edit Form which can be used to add new items (in the example above this would be a form based on the Wards table). When the user right-clicks on the lookup field they will be offered the option to Edit List Items which, if selected, will bring up the appropriate form. Page 19 of 29

22 Modifying the Data Design of a Table To modify any changes to the design of a table, you need to open the relevant table and click on the Design button. In Design view you can add new fields, change the properties of existing fields and delete fields that are no longer required. If you make changes to thr properties of fiels which already contain data, upi will to consider whether he existing daa meets the nw settings. Access will display warning messages to ndicate that your data could be changd with the new properties. With changes to the field information, whither data types or properties, ensure that you save your updates. If you have made changes to certain fields, for example changing or adding a validation rule, you will see the following messages when you have saved your changes: If you click Yes, then Access will check if any existing records do not meet your validation rule criteria. It will not tell you which ones or how many. You will see the above message if any of your records do not meet the criteria specified in your validation rule. 1. If you click Yes then Access will keep your new setting and continue testing 2. If you click No then the new setting will not be kept 3. Click Cancel, to keep the new setting, but stop testing Page 20 of 29

23 If you make changes to the field size, then the following message will appear: If you are sure that your existing data will meet the new settings, then you would select the Yes option. The default is No so if you hit the Enter key, no changes will be made. Be careful! If you change to a shorter field size, some of the existing text may be deleted. Page 21 of 29

24 Relationships If your database contains more than one table, it is necessary to define how the tables are related. Tables can be related by linking a field in each table. The links or relationships are used to define how the tables interact with each other when being searched. One-to-many relationships The most common relationship is a One-to-Many relationship. A record in one table is linked to one or more records in another table. This is done by storing a value from a particular field (usually the Primary Key field) of the record on the One side of this relationship in a field in the related record on the Many side. This field is known as a Foreign Key. A foreign key will not be unique in a One-to-Many relationship. The table on the One side of the relationship is known as the Primary Table. Scenario In a hospital database, one ward may have many nurses but each nurse is assigned to only one ward. In this scenario, information relating to wards is stored in one table with one record for each ward. The primary key for each ward might be WardNumber. Information about nurses is stored in a separate table. In addition to fields containing nurse data, such as their name and address, job title, etc., the nurse table also contains a Foreign Key field which stores the ward number value for the ward for that particular Nurse. One-to-one relationships This would be created when data relating to one subject is split across two different tables but each record in the first table would only link to one record in another. This is done where particular fields are only required for some of the records in a table. If the tables are linked using the Primary Key value from the first table, this value could be stored in a field in the second table which is also the primary key for that table because there will be no duplication of values. One-to-One relationships are created in the same way as One-to-Many relationships (see Creating relationships on page 23). Scenario Some (but not all) patients are included in a particular research study. Rather than creating additional fields in the primary table which would be empty for most patients, an additional table is created to store records for just those patients in the study. Both tables might have a field for the patient s hospital number (the primary key) and these would be linked to form the relationship between them. Many-to-many relationships In this situation a record in one table needs to be linked to several records in another table and each of these records might link to several records in the first table. In order to create these relationships, a table known as a Junction Table is created which links the two Primary Tables. In addition to any other fields the junction table may contain it will have two Foreign Key fields to display the data from the primary key fields of the tables it is linking. Each of the primary tables is on the One side of a One-tomany relationship with the junction table. Scenario Over time, one Patient might be admitted to many wards and each ward might admit many patients. The same patients might be admitted to the same ward at different times. These could be linked by having an additional table for admissions in which each record would include a field for the PatientID Page 22 of 29

25 from the patient table and a field for the WardNumber field from the ward table as well as the date of that particular admission and any other relevant information relating to it. The diagram below Patients Admissions Ward illustrates this relationship: Creating relationships Preparing to create relationships In order to create a relationship between two tables the following rules must be observed: Both the tables must be in the same database. Both fields you wish to link must have the same data type (AutoNumber fields are regarded as Number fields in this regard). If the matching fields are number fields, they must also have the same Field Size Property settings. Creating relationships between tables 1. Close all tables which are to be linked. You cannot create or modify relationships between open tables. 2. On the Database Tools tab, click on the Relationships button. The Relationship Tools Design tab will appear. 3. Click on the Show Table button. The Show Table dialog box will appear: 4. In the Show Tables dialog box, ensure the Tables tab is selected. 5. Select the tables to be related and click on Add to add them to the Relationships window. 6. Click on Close to close the Show Table dialog box. 7. The Relationship window displays the tables to be linked. The Primary Keys are marked with a key symbol. 8. To create a relationship between two tables, click and drag between the two common fields in the table. The Relationship dialog box will be displayed as shown Helpful Hint: Always drag from the primary table to the secondary table i.e. from the table in which the field you are linking is the primary key. In this example, drag from tbl_ward to tbl_nurse. It is necessary to define the type of relationship for each link: 1. Click Enforce Referential Integrity if required (see Referential integrity on page 24 for further details). 2. Click on Create. Page 23 of 29

26 3. A line now joins the fields and the two tables are linked between the common fields. 4. Close the Relationships window to return to the Database Window. Viewing or editing existing relationships 1. On the Database Tools tab, click on the Relationships button. 2. Double click the relationship line (see above) to display the Relationships dialog box. A thick line indicates referential integrity (see Referential integrity on page 24). 1 indicates the one side of a one-to-many relationship. indicates the many side on a one-to-many relationship. Helpful Hint: You can modify the structure of a table from the Relationships window by right-clicking on the table and selecting Table Design from the menu. Removing relationships between tables 1. Close all tables which are to be linked. 2. On the Database Tools tab, click on the Relationships button. 3. Right-click on the line linking the two tables you want to unlink. 4. Select Delete from the shortcut menu. 5. Confirm by clicking on Yes. Referential integrity Referential Integrity is used to ensure that records in related tables are valid and that you don t accidentally delete or change related data. In order to be able to enforce referential integrity between two tables, the matching field from the primary table must be a primary key field or have a unique index (no duplicates). If the Enforce Referential Integrity option is selected the following rules will apply when creating or editing records: When entering a record in the related table, the value on which the link is based must already exist in the primary table. For example, if you are adding a new patient record to the patient table (which is related to the ward table), the patient can only be allocated a ward name if it already exists in the ward table. You cannot delete a record from a primary table if matching records still exist in the related table. For example, you could not delete a ward record if a patient record still exists for that ward. You cannot change the value in the primary table linking field if a matching record exists in the secondary table. For example, you could not change the value in the Ward_Name field of the ward table after you have already created a patient record and entered that Ward_Name in the foreign key field for the patient. If you try to break any of these rules, Access will display an error message. Page 24 of 29

27 Enforcing referential integrity 1. Double-click on the Relationship line to display the Relationships dialog box. 2. Tick the Enforce Referential Integrity check box. 3. The following options are also available: Cascade Update Related fields Cascade Delete Related Records Select this option to ensure that when you change the primary key value of a primary record, the related records are also changed. For example, if you change a Ward Number in the Ward Table then any related Ward Number in the Nurse Table would be updated. Select this option to ensure that when you delete a record in a primary table, that the related records are also deleted. For example, if a Ward was deleted from the Ward Table, then any related nurse in the Nurse Table would automatically be deleted. Join Properties A relationship created between two tables can have one of three join types. The type of join can determine which records are shown when queries are run. By default, Access chooses the first join type shown : This option will not display records that do not have a matching record in both tables. In the example shown above, a relationship between the Ward Table and the Nurse_table has been created. The results of each join type are explained below: 1. Inner Join: Shows records where the Ward Number field has matching values in both table ie will only shown Ward Numbers for which there are nurses. 2. Left Outer Join: Shows all records from left side of join (Wards) and only the matching records on right side (where contents of the joined fields are equal). 3. Right Outer Join: Shows all nurses, even if no ward has been assigned to some of them yet. Page 25 of 29

28 Table: Wards Table: Nurses 1. Inner Join: Shows records where the Ward Number field has matching values in both table ie will only shown Ward Numbers for which there are nurses. 2. Left Outer Join: Shows all records from left side of join (Wards) and only the matching records on right side (where contents of the joined fields are equal). 3. Right Outer Join: Shows all nurses, even if no ward has been assigned to some of them yet. Viewing Sub Datasheets When a relationship has been created between One to One or One to Many tables, Access will automatically create a sub datasheet. This information is useful for navigating to specific records in related fields. Page 26 of 29

29 Click on the + or symbols to expand and collapse and view the related records from the Many table. Data can be amended in either the table originally opened or the related data being viewed as a sub datasheet. Page 27 of 29

Microsoft Access Basics

Microsoft Access Basics Microsoft Access Basics 2006 ipic Development Group, LLC Authored by James D Ballotti Microsoft, Access, Excel, Word, and Office are registered trademarks of the Microsoft Corporation Version 1 - Revision

More information

Microsoft Access 2007 Module 1

Microsoft Access 2007 Module 1 Microsoft Access 007 Module http://pds.hccfl.edu/pds Microsoft Access 007: Module August 007 007 Hillsborough Community College - Professional Development and Web Services Hillsborough Community College

More information

Use Find & Replace Commands under Home tab to search and replace data.

Use Find & Replace Commands under Home tab to search and replace data. Microsoft Access 2: Managing Data in Tables and Creating Relationships You have created tables in an Access database. Data in Access tables can be added, deleted, and updated to be current (practiced in

More information

MS Access Lab 2. Topic: Tables

MS Access Lab 2. Topic: Tables MS Access Lab 2 Topic: Tables Summary Introduction: Tables, Start to build a new database Creating Tables: Datasheet View, Design View Working with Data: Sorting, Filtering Help on Tables Introduction

More information

Table and field properties Tables and fields also have properties that you can set to control their characteristics or behavior.

Table and field properties Tables and fields also have properties that you can set to control their characteristics or behavior. Create a table When you create a database, you store your data in tables subject-based lists that contain rows and columns. For instance, you can create a Contacts table to store a list of names, addresses,

More information

Microsoft Access 2010 Part 1: Introduction to Access

Microsoft Access 2010 Part 1: Introduction to Access CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Access 2010 Part 1: Introduction to Access Fall 2014, Version 1.2 Table of Contents Introduction...3 Starting Access...3

More information

Microsoft Access 2010 Overview of Basics

Microsoft Access 2010 Overview of Basics Opening Screen Access 2010 launches with a window allowing you to: create a new database from a template; create a new template from scratch; or open an existing database. Open existing Templates Create

More information

Microsoft Access 2003 Module 1

Microsoft Access 2003 Module 1 Microsoft Access 003 Module http://pds.hccfl.edu/pds Microsoft Access 003: Module June 005 006 Hillsborough Community College - Professional Development Services Hillsborough Community College - Professional

More information

Introduction to Microsoft Access 2010

Introduction to Microsoft Access 2010 Introduction to Microsoft Access 2010 A database is a collection of information that is related. Access allows you to manage your information in one database file. Within Access there are four major objects:

More information

Access 2010 Intermediate Skills

Access 2010 Intermediate Skills Access 2010 Intermediate Skills (C) 2013, BJC HealthCare (St Louis, Missouri). All Rights Reserved. Revised June 5, 2013. TABLE OF CONTENTS OBJECTIVES... 3 UNDERSTANDING RELATIONSHIPS... 4 WHAT IS A RELATIONSHIP?...

More information

MS Access: Advanced Tables and Queries. Lesson Notes Author: Pamela Schmidt

MS Access: Advanced Tables and Queries. Lesson Notes Author: Pamela Schmidt Lesson Notes Author: Pamela Schmidt Tables Text Fields (Default) Text or combinations of text and numbers, as well as numbers that don't require calculations, such as phone numbers. or the length set by

More information

Microsoft Using an Existing Database Amarillo College Revision Date: July 30, 2008

Microsoft Using an Existing Database Amarillo College Revision Date: July 30, 2008 Microsoft Amarillo College Revision Date: July 30, 2008 Table of Contents GENERAL INFORMATION... 1 TERMINOLOGY... 1 ADVANTAGES OF USING A DATABASE... 2 A DATABASE SHOULD CONTAIN:... 3 A DATABASE SHOULD

More information

Microsoft Access 2010

Microsoft Access 2010 IT Training Microsoft Access 2010 Jane Barrett, IT Training & Engagement Team Information System Services Version 3.0 Scope Learning outcomes Learn how to navigate around Access. Learn how to design and

More information

Filter by Selection button. Displays records by degree to which they match the selected record. Click to view advanced filtering options

Filter by Selection button. Displays records by degree to which they match the selected record. Click to view advanced filtering options The Home Ribbon Sort Buttons: sort records into ascending or descending order by selected field Filter by Selection button. Displays records by degree to which they match the selected record. Display summary

More information

Introduction to Microsoft Access 2013

Introduction to Microsoft Access 2013 Introduction to Microsoft Access 2013 A database is a collection of information that is related. Access allows you to manage your information in one database file. Within Access there are four major objects:

More information

Microsoft Access Part I (Database Design Basics) ShortCourse Handout

Microsoft Access Part I (Database Design Basics) ShortCourse Handout Microsoft Access Part I (Database Design Basics) ShortCourse Handout July 2004, Technology Support, Texas Tech University. ALL RIGHTS RESERVED. Members of Texas Tech University or Texas Tech Health Sciences

More information

User Services. Microsoft Access 2003 II. Use the new Microsoft

User Services. Microsoft Access 2003 II. Use the new Microsoft User Services July 2007 OBJECTIVES Develop Field Properties Import Data from an Excel Spreadsheet Create Relationships Create a Form with a Subform Create Action Queries Create Command Buttons Create a

More information

IN THIS PROJECT, YOU LEARN HOW TO

IN THIS PROJECT, YOU LEARN HOW TO UNIT 2 PROJECT 11 CREATING A CUSTOMIZED DATABASE IN THIS PROJECT, YOU LEARN HOW TO Examine a Database and Its Objects Create Tables and Set Field Properties in Design View Create Relationships Add and

More information

Creating tables in Microsoft Access 2007

Creating tables in Microsoft Access 2007 Platform: Windows PC Ref no: USER 164 Date: 25 th October 2007 Version: 1 Authors: D.R.Sheward, C.L.Napier Creating tables in Microsoft Access 2007 The aim of this guide is to provide information on using

More information

Access Part 2 - Design

Access Part 2 - Design Access Part 2 - Design The Database Design Process It is important to remember that creating a database is an iterative process. After the database is created and you and others begin to use it there will

More information

Create a New Database in Access 2010

Create a New Database in Access 2010 Create a New Database in Access 2010 Table of Contents OVERVIEW... 1 CREATING A DATABASE... 1 ADDING TO A DATABASE... 2 CREATE A DATABASE BY USING A TEMPLATE... 2 CREATE A DATABASE WITHOUT USING A TEMPLATE...

More information

INTRODUCTION TO MICROSOFT ACCESS Tables, Queries, Forms & Reports

INTRODUCTION TO MICROSOFT ACCESS Tables, Queries, Forms & Reports INTRODUCTION TO MICROSOFT ACCESS Tables, Queries, Forms & Reports Introduction...2 Tables...3 Designing a Table...3 Data Types...4 Relationships...8 Saving Object Designs and Saving Data...9 Queries...11

More information

Microsoft Access 3: Understanding and Creating Queries

Microsoft Access 3: Understanding and Creating Queries Microsoft Access 3: Understanding and Creating Queries In Access Level 2, we learned how to perform basic data retrievals by using Search & Replace functions and Sort & Filter functions. For more complex

More information

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins) Lesson 07: MS ACCESS - Handout Handout Introduction to database (30 mins) Microsoft Access is a database application. A database is a collection of related information put together in database objects.

More information

User Services. Intermediate Microsoft Access. Use the new Microsoft Access. Getting Help. Instructors OBJECTIVES. July 2009

User Services. Intermediate Microsoft Access. Use the new Microsoft Access. Getting Help. Instructors OBJECTIVES. July 2009 User Services July 2009 OBJECTIVES Develop Field Properties Import Data from an Excel Spreadsheet & MS Access database Create Relationships Create a Form with a Subform Create Action Queries Create Command

More information

- Suresh Khanal. http://mcqsets.com. http://www.psexam.com Microsoft Excel Short Questions and Answers 1

- Suresh Khanal. http://mcqsets.com. http://www.psexam.com Microsoft Excel Short Questions and Answers 1 - Suresh Khanal http://mcqsets.com http://www.psexam.com Microsoft Excel Short Questions and Answers 1 Microsoft Access Short Questions and Answers with Illustrations Part I Suresh Khanal Kalanki, Kathmandu

More information

Microsoft Access 2010 handout

Microsoft Access 2010 handout Microsoft Access 2010 handout Access 2010 is a relational database program you can use to create and manage large quantities of data. You can use Access to manage anything from a home inventory to a giant

More information

What is a database? The parts of an Access database

What is a database? The parts of an Access database What is a database? Any database is a tool to organize and store pieces of information. A Rolodex is a database. So is a phone book. The main goals of a database designer are to: 1. Make sure the data

More information

Introduction to Microsoft Access 2003

Introduction to Microsoft Access 2003 Introduction to Microsoft Access 2003 Zhi Liu School of Information Fall/2006 Introduction and Objectives Microsoft Access 2003 is a powerful, yet easy to learn, relational database application for Microsoft

More information

Microsoft Access 2010- Introduction

Microsoft Access 2010- Introduction Microsoft Access 2010- Introduction Access is the database management system in Microsoft Office. A database is an organized collection of facts about a particular subject. Examples of databases are an

More information

Topic: Relationships in ER Diagram and Relationships in MS Access

Topic: Relationships in ER Diagram and Relationships in MS Access MS Access Lab 3 Topic: Relationships in ER Diagram and Relationships in MS Access Summary Introduction to Relationships Why Define Relationships? Relationships in ER Diagram vs. Relationships in MS Access

More information

European Computer Driving Licence

European Computer Driving Licence European Computer Driving Licence ECDL Syllabus 5.0 Module 5 Using Databases ECDL Syllabus 5 Courseware Module 5 Contents UNDERSTANDING DATABASES... 1 KEY CONCEPTS...1 DATABASE ORGANIZATION...1 RELATIONSHIPS...3

More information

Creating and Using Databases with Microsoft Access

Creating and Using Databases with Microsoft Access CHAPTER A Creating and Using Databases with Microsoft Access In this chapter, you will Use Access to explore a simple database Design and create a new database Create and use forms Create and use queries

More information

Planning and Creating a Custom Database

Planning and Creating a Custom Database Planning and Creating a Custom Database Introduction The Microsoft Office Access 00 database wizards make creating databases easy, but you may need to create a database that does not fit any of the predefined

More information

Database File. Table. Field. Datatype. Value. Department of Computer and Mathematical Sciences

Database File. Table. Field. Datatype. Value. Department of Computer and Mathematical Sciences Unit 4 Introduction to Spreadsheet and Database, pages 1 of 12 Department of Computer and Mathematical Sciences CS 1305 Intro to Computer Technology 15 Module 15: Introduction to Microsoft Access Objectives:

More information

Ken Goldberg Database Lab Notes. There are three types of relationships: One-to-One (1:1) One-to-Many (1:N) Many-to-Many (M:N).

Ken Goldberg Database Lab Notes. There are three types of relationships: One-to-One (1:1) One-to-Many (1:N) Many-to-Many (M:N). Lab 3 Relationships in ER Diagram and Relationships in MS Access MS Access Lab 3 Summary Introduction to Relationships Why Define Relationships? Relationships in ER Diagram vs. Relationships in MS Access

More information

Introduction to Microsoft Office Access 2010

Introduction to Microsoft Office Access 2010 Introduction to Microsoft Office Access 2010 The Himmelfarb Health Sciences Library Questions? Ask us. Microsoft Office Access 2010 by Himmelfarb Health Sciences Library is licensed under a Creative Commons

More information

Using Microsoft Access Databases

Using Microsoft Access Databases Using Microsoft Access Databases Print this document to use as a reference while you work through this course. Open Access, and follow all directions to familiarize yourself with the program. Database

More information

C omputer D riving L icence

C omputer D riving L icence E uropean C omputer D riving L icence E C D L S y l l a b u s 5. 0 Module 5 Using Databases ECDL Syllabus 5 Courseware Module 5 Contents UNDERSTANDING DATABASES... 1 KEY CONCEPTS... 1 DATABASE ORGANIZATION...

More information

How To Understand The Basic Concepts Of A Database And Data Science

How To Understand The Basic Concepts Of A Database And Data Science Database Concepts Using Microsoft Access lab 9 Objectives: Upon successful completion of Lab 9, you will be able to Understand fundamental concepts including database, table, record, field, field name,

More information

Access I 2010. Tables, Queries, Forms, Reports. Lourdes Day, Technology Specialist, FDLRS Sunrise

Access I 2010. Tables, Queries, Forms, Reports. Lourdes Day, Technology Specialist, FDLRS Sunrise Access I 2010 Tables, Queries, Forms, Reports Lourdes Day, Technology Specialist, FDLRS Sunrise Objectives Participants will 1. create and edit a table 2. create queries with criteria 3. create and edit

More information

Microsoft Access 2007 Introduction

Microsoft Access 2007 Introduction Microsoft Access 2007 Introduction Access is the database management system in Microsoft Office. A database is an organized collection of facts about a particular subject. Examples of databases are an

More information

INTRODUCTION TO MICROSOFT ACCESS MINIMAL MANUAL

INTRODUCTION TO MICROSOFT ACCESS MINIMAL MANUAL University of Glasgow Department of Computing Science INTRODUCTION TO MICROSOFT ACCESS MINIMAL MANUAL 1 Databases in Access...2 2 The Database Window...2 3 Help...2 4 Saving...3 5 Wizards...3 6 Tables...3

More information

Access Queries (Office 2003)

Access Queries (Office 2003) Access Queries (Office 2003) Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk 293-4444 x 1 oit.wvu.edu/support/training/classmat/db/ Instructor: Kathy

More information

Access Database Design

Access Database Design Access Database Design Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk -- 293-4444 x 1 http://oit.wvu.edu/support/training/classmat/db/ Instructors:

More information

A Basic introduction to Microsoft Access

A Basic introduction to Microsoft Access A Basic introduction to Microsoft Access By Ojango J.M.K Department of Animal Sciences, Egerton University, Njoro, Kenya and International Livestock Research Institute, Nairobi, Kenya Ms Access is a database

More information

Chapter 5. Microsoft Access

Chapter 5. Microsoft Access Chapter 5 Microsoft Access Topic Introduction to DBMS Microsoft Access Getting Started Creating Database File Database Window Table Queries Form Report Introduction A set of programs designed to organize,

More information

MICROSOFT ACCESS A. CREATING A DATABASE B. CREATING TABLES IN A DATABASE

MICROSOFT ACCESS A. CREATING A DATABASE B. CREATING TABLES IN A DATABASE Prepared for MIS 6326 by Dr. Sumit Sarkar 1 MICROSOFT ACCESS A database is a collection of different types of data, stored in a manner to facilitate use in diverse ways. In Microsoft Access 2000, a database

More information

Consider the possible problems with storing the following data in a spreadsheet:

Consider the possible problems with storing the following data in a spreadsheet: Microsoft Access 2010 Part 1: Introduction to Database Design What is a database? Identifying entities and attributes Understanding relationships and keys Developing tables and other objects Planning a

More information

Access 2007 Creating Forms Table of Contents

Access 2007 Creating Forms Table of Contents Access 2007 Creating Forms Table of Contents CREATING FORMS IN ACCESS 2007... 3 UNDERSTAND LAYOUT VIEW AND DESIGN VIEW... 3 LAYOUT VIEW... 3 DESIGN VIEW... 3 UNDERSTAND CONTROLS... 4 BOUND CONTROL... 4

More information

Exploring Microsoft Office Access 2007. Chapter 2: Relational Databases and Multi-Table Queries

Exploring Microsoft Office Access 2007. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office Access 2007 Chapter 2: Relational Databases and Multi-Table Queries 1 Objectives Design data Create tables Understand table relationships Share data with Excel Establish table

More information

Search help. More on Office.com: images templates

Search help. More on Office.com: images templates Page 1 of 14 Access 2010 Home > Access 2010 Help and How-to > Getting started Search help More on Office.com: images templates Access 2010: database tasks Here are some basic database tasks that you can

More information

Creating a Database in Access

Creating a Database in Access Creating a Database in Access Microsoft Access is a database application. A database is collection of records and files organized for a particular purpose. For example, you could use a database to store

More information

Access 2007. Using Access

Access 2007. Using Access Access 2007 Using Access 1 Contents Introduction to Microsoft Access 2007... 3 Microsoft Access 2007 features 3 Opening a database 4 Database objects 5 Opening objects 6 Working with objects 6 Saving in

More information

Creating a New MS-Access Database

Creating a New MS-Access Database Group Size 3 or 4. Due date : at next week labs. Requirements Using MS Access, implement an application for a students project groups and teachers. What should be covered: Opening a Database The Database

More information

Lab Manual. Databases. Microsoft Access. Peeking into Computer Science Access Lab manual

Lab Manual. Databases. Microsoft Access. Peeking into Computer Science Access Lab manual Lab Manual Databases Microsoft Access 1 Table of Contents Lab 1: Introduction to Microsoft Access... 3 Getting started... 3 Tables... 3 Primary Keys... 6 Field Properties... 7 Validation Rules... 11 Input

More information

Les s on Objectives. Student Files Us ed

Les s on Objectives. Student Files Us ed Lesson 7 - Using Lookup Fields 115 Lesson 7 Using L ook up F ields Les s on Topics Looking Up Values in Tables Looking Up Values in a List The Lookup Wizard Review Exercise Les s on Objectives At the end

More information

Task Force on Technology / EXCEL

Task Force on Technology / EXCEL Task Force on Technology EXCEL Basic terminology Spreadsheet A spreadsheet is an electronic document that stores various types of data. There are vertical columns and horizontal rows. A cell is where the

More information

Excel Database Management Microsoft Excel 2003

Excel Database Management Microsoft Excel 2003 Excel Database Management Microsoft Reference Guide University Technology Services Computer Training Copyright Notice Copyright 2003 EBook Publishing. All rights reserved. No part of this publication may

More information

Ohio University Computer Services Center July, 2004 Microsoft Access 2003 Reference Guide

Ohio University Computer Services Center July, 2004 Microsoft Access 2003 Reference Guide Ohio University Computer Services Center July, 2004 Microsoft Access 2003 Reference Guide Overview Access is a relational database management system (RDBMS). This is a type of database management system

More information

Using Microsoft Access

Using Microsoft Access Using Microsoft Access Microsoft Access is a computer application used to create and work with databases. In computer jargon that means it s a Database Management System or DBMS. So what is a database?

More information

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide Open Crystal Reports From the Windows Start menu choose Programs and then Crystal Reports. Creating a Blank Report Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick

More information

MICROSOFT OFFICE ACCESS 2007 - NEW FEATURES

MICROSOFT OFFICE ACCESS 2007 - NEW FEATURES MICROSOFT OFFICE 2007 MICROSOFT OFFICE ACCESS 2007 - NEW FEATURES Exploring Access Creating and Working with Tables Finding and Filtering Data Working with Queries and Recordsets Working with Forms Working

More information

Microsoft. Access HOW TO GET STARTED WITH

Microsoft. Access HOW TO GET STARTED WITH Microsoft Access HOW TO GET STARTED WITH 2015 The Continuing Education Center, Inc., d/b/a National Seminars Training. All rights reserved, including the right to reproduce this material or any part thereof

More information

ACCESS 2007. Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818) 677-1700

ACCESS 2007. Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818) 677-1700 Information Technology MS Access 2007 Users Guide ACCESS 2007 Importing and Exporting Data Files IT Training & Development (818) 677-1700 training@csun.edu TABLE OF CONTENTS Introduction... 1 Import Excel

More information

Creating and Using Forms in SharePoint

Creating and Using Forms in SharePoint Creating and Using Forms in SharePoint Getting started with custom lists... 1 Creating a custom list... 1 Creating a user-friendly list name... 1 Other options for creating custom lists... 2 Building a

More information

MICROSOFT ACCESS STEP BY STEP GUIDE

MICROSOFT ACCESS STEP BY STEP GUIDE IGCSE ICT SECTION 11 DATA MANIPULATION MICROSOFT ACCESS STEP BY STEP GUIDE Mark Nicholls ICT Lounge P a g e 1 Contents Task 35 details Page 3 Opening a new Database. Page 4 Importing.csv file into the

More information

Information Technology Services Kennesaw State University

Information Technology Services Kennesaw State University Information Technology Services Kennesaw State University Microsoft Access 2007 Level 1 1 Copyright 2008 KSU Dept. of Information Technology Services This document may be downloaded, printed or copied

More information

MICROSOFT OFFICE ACCESS 2007 - LEVEL 2

MICROSOFT OFFICE ACCESS 2007 - LEVEL 2 MICROSOFT OFFICE 2007 MICROSOFT OFFICE ACCESS 2007 - LEVEL 2 Modifying Tables Setting Field Properties Using Operators in Queries Designing Advanced Queries Creating Action Queries Using Advanced Query

More information

Reduced Quality Sample

Reduced Quality Sample Access 2007 Essentials PART ONE Mobile MOUSe Access 2007 Essentials Version # 1.1 Part One 08/08/2010 11:20 About this Course Microsoft Access is the database application included with Microsoft Office.

More information

MICROSOFT ACCESS 2003 TUTORIAL

MICROSOFT ACCESS 2003 TUTORIAL MICROSOFT ACCESS 2003 TUTORIAL M I C R O S O F T A C C E S S 2 0 0 3 Microsoft Access is powerful software designed for PC. It allows you to create and manage databases. A database is an organized body

More information

Microsoft Access 2013 An Intermediate Guide (Level 2)

Microsoft Access 2013 An Intermediate Guide (Level 2) IT Training Microsoft Access 2013 An Intermediate Guide (Level 2) Contents Introduction...1 Speeding up Table Creation...2 Using a Table Template...2 Using Datasheet View...2 Input Masks...3 Importing

More information

Writer Guide. Chapter 15 Using Forms in Writer

Writer Guide. Chapter 15 Using Forms in Writer Writer Guide Chapter 15 Using Forms in Writer Copyright This document is Copyright 2005 2008 by its contributors as listed in the section titled Authors. You may distribute it and/or modify it under the

More information

Introduction to. Microsoft Access 2000. Practicals

Introduction to. Microsoft Access 2000. Practicals Introduction to Microsoft Access 2000 Practicals 1 Contents Practical 1..1 Introduction to Access basics. Getting help in Access. Creating databases and tables. Practical 2 13 More on creating, editing

More information

How To Create A Database For Employee Records In A Club Account In A Computer System In A Cell Phone Or Cell Phone With A Cell Computer (For A Cell)

How To Create A Database For Employee Records In A Club Account In A Computer System In A Cell Phone Or Cell Phone With A Cell Computer (For A Cell) Creating a Database Lab 1 Objectives After completing this lab, you will know how to: 1 Plan, create, and modify a database. 2 Create and save a table structure. 3 Define field names, data types, field

More information

warpct.com MS Access 2010 Workbook courseware by WARP! Computer Training

warpct.com MS Access 2010 Workbook courseware by WARP! Computer Training warpct.com courseware by WARP! Computer Training MS Access 2010 Workbook Welcome! Thank you for evaluating a portion of this workbook. If you have any questions or comments regarding our training materials

More information

ECDL. European Computer Driving Licence. Database Software BCS ITQ Level 1. Syllabus Version 1.0

ECDL. European Computer Driving Licence. Database Software BCS ITQ Level 1. Syllabus Version 1.0 ECDL European Computer Driving Licence Database Software BCS ITQ Level 1 Using Microsoft Access 2013 Syllabus Version 1.0 This training, which has been approved by BCS, includes exercise items intended

More information

Click to create a query in Design View. and click the Query Design button in the Queries group to create a new table in Design View.

Click to create a query in Design View. and click the Query Design button in the Queries group to create a new table in Design View. Microsoft Office Access 2010 Understanding Queries Queries are questions you ask of your database. They allow you to select certain fields out of a table, or pull together data from various related tables

More information

Microsoft Access XP Session 1 Week 8

Microsoft Access XP Session 1 Week 8 Creating a Database Click-on the Start button in the lower left corner of the screen, then click-on Programs, and then click-on Microsoft Access. New File The Access XP New File Task Pane will appear on

More information

Simple Invoicing Desktop Database with MS Access 2013. c 2015 by David W. Gerbing School of Business Administration Portland State University

Simple Invoicing Desktop Database with MS Access 2013. c 2015 by David W. Gerbing School of Business Administration Portland State University Simple Invoicing Desktop Database with MS Access 2013 c 2015 by David W. Gerbing School of Business Administration Portland State University July 2, 2015 CONTENTS 1 Contents 1 Create a New Database 1 2

More information

Access 2010: Creating Queries Table of Contents INTRODUCTION TO QUERIES... 2 QUERY JOINS... 2 INNER JOINS... 3 OUTER JOINS...

Access 2010: Creating Queries Table of Contents INTRODUCTION TO QUERIES... 2 QUERY JOINS... 2 INNER JOINS... 3 OUTER JOINS... Access 2010: Creating Queries Table of Contents INTRODUCTION TO QUERIES... 2 QUERY JOINS... 2 INNER JOINS... 3 OUTER JOINS... 3 CHANGE A JOIN PROPERTY... 4 REMOVING A JOIN... 4 CREATE QUERIES... 4 THE

More information

To determine the fields in a table decide what you need to know about the subject. Here are a few tips:

To determine the fields in a table decide what you need to know about the subject. Here are a few tips: Access Introduction Microsoft Access is a relational database software product that you can use to organize your data. What is a "database"? A database is an integrated collection of data that shares some

More information

Setting up a basic database in Access 2007

Setting up a basic database in Access 2007 Setting up a basic database in Access 2007 1. Open Access. This is the screen that you should see 2. Click on Blank database 3. Enter the name customer mailing list in the file name section (this will

More information

Structure a Database. Key Concepts LESSON. Access 380. Lesson 2: Structure a Database. Standards

Structure a Database. Key Concepts LESSON. Access 380. Lesson 2: Structure a Database. Standards LESSON Key Concepts Structure a Database In this lesson, you will continue learning skills to use Access in your daily life. You will learn to create the following elements in this lesson: databases, tables,

More information

Databases and Microsoft Access II

Databases and Microsoft Access II Databases and Microsoft Access II Northern New York Library Network Workshop Jim Crowley C3 - Crowley Computer Consulting 9148 State Highway 37 Ogdensburg NY 13669 315-394-7008 fax 315-394-7009 www.crowleycomputers.com

More information

Chapter 15 Using Forms in Writer

Chapter 15 Using Forms in Writer Writer Guide Chapter 15 Using Forms in Writer OpenOffice.org Copyright This document is Copyright 2005 2006 by its contributors as listed in the section titled Authors. You can distribute it and/or modify

More information

Access 2007. Queries

Access 2007. Queries Access 2007 Queries WORKSHOP DESCRIPTION... 1 Overview 1 Prerequisites 1 Objectives 1 WHAT IS A QUERY?... 2 WHY USE QUERIES?... 2 TERMS TO KNOW... 2 Select Queries 2 Action Queries 2 Crosstab Queries

More information

Microsoft Access 2010 An Intermediate Guide (Level 2)

Microsoft Access 2010 An Intermediate Guide (Level 2) IT Training Microsoft Access 2010 An Intermediate Guide (Level 2) Contents Introduction...1 Speeding up Table Creation...2 Using Datasheet View...2 Using a Table Template...3 Input Masks...3 Importing

More information

Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro

Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro, to your M: drive. To do the second part of the prelab, you will need to have available a database from that folder. Creating a new

More information

Access Tutorial 8: Combo Box Controls

Access Tutorial 8: Combo Box Controls Access Tutorial 8: Combo Box Controls 8.1 Introduction: What is a combo box? So far, the only kind of control you have used on your forms has been the text box. However, Access provides other controls

More information

Introduction to Microsoft Access

Introduction to Microsoft Access Welcome to Teach Yourself: Introduction to Microsoft Access This Teach Yourself tutorial explains the basic operations and terminology of Microsoft Access 2003, a database management program. Microsoft

More information

ICDL Module 5: David Varley

ICDL Module 5: David Varley ICDL Module 5: Databases using OpenOffice.org Base David Varley IMPORTANT NOTICE All candidates who follow an ICDL/ECDL course must have an official CDL/ECDL Skills Log Book or Skills Card. Without such

More information

MICROSOFT ACCESS 2007 BOOK 2

MICROSOFT ACCESS 2007 BOOK 2 MICROSOFT ACCESS 2007 BOOK 2 4.1 INTRODUCTION TO ACCESS FIRST ENCOUNTER WITH ACCESS 2007 P 205 Access is activated by means of Start, Programs, Microsoft Access or clicking on the icon. The window opened

More information

Tutorial 3. Maintaining and Querying a Database

Tutorial 3. Maintaining and Querying a Database Tutorial 3 Maintaining and Querying a Database Microsoft Access 2010 Objectives Find, modify, and delete records in a table Learn how to use the Query window in Design view Create, run, and save queries

More information

Microsoft Office 2010

Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database Microsoft Office 2010 Objectives Find, modify, and delete records in a table Learn how to use the Query window in Design view Create, run, and save

More information

Databases with Microsoft Access. Using Access to create Databases Jan-Feb 2003

Databases with Microsoft Access. Using Access to create Databases Jan-Feb 2003 Databases with Microsoft Access Using Access to create Databases Jan-Feb 2003 What is a Database? An Organized collection of information about a subject. Examples: Address Book Telephone Book Filing Cabinet

More information

MICROSOFT OFFICE ACCESS 2007 - LEVEL 1

MICROSOFT OFFICE ACCESS 2007 - LEVEL 1 MICROSOFT OFFICE 2007 MICROSOFT OFFICE ACCESS 2007 - LEVEL 1 Exploring Access Creating Tables Working with Tables Editing Tables Finding and Filtering Data Printing Data Creating Relationships Using Simple

More information

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 Table of Contents Part I Creating a Pivot Table Excel Database......3 What is a Pivot Table...... 3 Creating Pivot Tables

More information

Field Properties Quick Reference

Field Properties Quick Reference Field Properties Quick Reference Data types The following table provides a list of the available data types in Microsoft Office Access 2007, along with usage guidelines and storage capacities for each

More information