Create A New Database In Access 2010 - Maxwell.syr.edu

2y ago
41 Views
2 Downloads
475.56 KB
7 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Sutton Moon
Transcription

Create a New Database in Access 2010Table of ContentsOVERVIEW . 1CREATING A DATABASE . 1ADDING TO A DATABASE . 2CREATE A DATABASE BY USING A TEMPLATE . 2CREATE A DATABASE WITHOUT USING A TEMPLATE . 3CREATE A BLANK DATABASE. 3ADD A TABLE . 3Create a table, starting in Datasheet view . 3Create a table, starting in Design view. 4Set field properties in Design view . 4COPY DATA FROM ANOTHER SOURCE INTO AN ACCESS TABLE . 5IMPORT, APPEND, OR LINK TO DATA FROM ANOTHER SOURCE . 6OPEN AN EXISTING ACCESS DATABASE . 7This article covers the basic process of starting Access 2010 and creating a database that will be used ondesktop machines, not over the Web. It explains how to create a desktop database by using a template, andhow to build a database from scratch by creating your own tables, forms, reports, and other database objects.It also explains some techniques that you can use to get existing data into your new database.OverviewWhen you first start Access, or if you close a database withoutclosing Access, Microsoft Office Backstage view is displayed.Backstage view is a starting point from which you can create anew database, open an existing database, view featuredcontent from Office.com — anything you can use Access todo to a database file or outside of a database, as opposed towithin a database.Creating a databaseWhen you open Access, Backstage view displays the New tab. The New tab provides several ways that youcan create a new database: A blank database: You can start from scratch if you want. This is a good option if you have very specificdesign requirements or have existing data that you need to accommodate or incorporate. A template that is installed with Access: Consider using a template if you are starting a new project andwould like a head start. Access comes with several templates installed by default.Handout: Access 2010 Create a DatabaseTopics came directly from Microsoft Access 2010 Help.ICT Training, Maxwell School of Syracuse UniversityPage 1

A template from Office.com: In addition to the templates that come with Access, you can find manymore templates on Office.com. You don't even have to open a browser, the templates are available fromthe New tab.Adding to a databaseOnce you are working in a database, you can add fields, tables or application parts.Application parts are a new feature that let you use several related database objects together as if they wereone. For example, an application part might consist of a table and a form that is based on the table. You canadd the table and the form at the same time by using the application part.You can also create queries, forms, reports, macros - all the database objects that you are used to workingwith.Create a database by using a templateAccess comes with a variety of templates that you can use as-is or as a starting point. A template is a ready-touse database that contains all the tables, queries, forms, and reports needed to perform a specific task. Forexample, there are templates that you can use to track issues, manage contacts, or keep a record of expenses.Some templates contain a few sample records to help demonstrate their use.If one of these templates fits your needs, using it is usually the fastest way to get a database started. However,if you have data in another program that you want to import into Access, you might decide it is better to createa database without using a template. Templates have a data structure already defined, and it might require a lotof work to adapt your existing data to the template's structure.1) If you have a database open, on the File tab, click Close Database.a) Backstage view displays the New tab.2) Several sets of templates are available in the New tab, some of which are built into Access. You candownload additional templates from Office.com.3) Select the template that you want to use.a) The template icon appears in the pane on the right, just above the File Name box.4) Access suggests a file name for your database in the File Name box — you can change the file name, ifyou want.a) To save the database in a different folder from the one displayed below the file name box, click,browse to the folder in which you want to save it, and then click OK.5) Click Create.a) Access creates a database from the template that you chose, and then opens the database.b) For many templates, a form is displayed in which you can begin entering data. If your templatecontains sample data, you can delete each record by clicking the record selector (the shaded box or barjust to the left of the record), and then doing the following:6) On the Home tab, in the Records group, click Delete.7) To begin entering data, click in the first empty cell on the form and begin typing.a) Use the Navigation Pane to browse for other forms or reports that you might want to use.Handout: Access 2010 Create a DatabaseTopics came directly from Microsoft Access 2010 Help.ICT Training, Maxwell School of Syracuse UniversityPage 2

Create a database without using a templateIf you are not interested in using a template, you can create a database by building your own tables, forms,reports, and other database objects. In most cases, this involves one or both of the following: Entering, pasting, or importing data into the table that is created when you create a new database, and thenrepeating the process with new tables that you create by using the Table command on the Create tab. Importing data from other sources and creating new tables in the process.Create a blank database1) On the File tab, click New, and then click Blank Database.2) In the right pane, under Blank Database, type a file name in the File Name box.a) To change the location of the file from the default, click Browse for a location to put your database(next to the File Name box), browse to the new location, and then click OK.3) Click Create.a) Access creates the database with an empty table named Table1, and then opens Table1 in Datasheetview.b) The cursor is placed in the first empty cell in the Click to Add column.4) Begin typing to add data, or you can paste data from another source.Entering data in Datasheet view is designed to be very similar to working in an Excel worksheet. The tablestructure is created while you enter data. When you add a new column to the datasheet, a new field is definedin the table. Access automatically sets each field's data type, based on the data that you enter.If you do not want to enter data in Table1 at this time, click Close. If you made any changes to the table,Access prompts you to save the changes. Click Yes to save your changes, click No to discard them, or clickCancel to leave the table open.Important: If you close Table1 without saving it at least once, Access deletes the entire table, even if youhave entered data in it.Add a tableYou can add new tables to an existing database byusing the commands in the Tables group on theCreate tab.Create a table, starting in Datasheet viewIn Datasheet view, you can enter data immediately and let Access build the table structure behind the scenes.Field names are assigned numerically (Field1, Field2, and so on), and Access automatically sets each field'sdata type, based on the data you enter.1) On the Create tab, in the Tables group, click Table.a) Access creates the table and selects the first empty cell in the Click to Add column.2) On the Fields tab, in the Add & Delete group, click the type of field that you want to add.a) If you don't see the type that you want, click More Fields . Access displays a list of commonly used field types. Click the field type that you want, and Accessadds the new field to the datasheet at the insertion point.Handout: Access 2010 Create a DatabaseTopics came directly from Microsoft Access 2010 Help.ICT Training, Maxwell School of Syracuse UniversityPage 3

b) You can move the field by dragging it. When you drag a field in a datasheet, a vertical insertion barappears where the field will be placed.3) To add data, begin typing in the first empty cell, or paste data from another source.4) To rename a column (field), double-click the column heading, and then type the new name.a) You should give a meaningful name to each field, so that you can tell what it contains when you see itin the Field List pane.5) To move a column, click its heading to select the column, and then drag the column to the location thatyou want.a) You can also select multiple contiguous columns and then drag them to a new location all at once.b) To select multiple contiguous columns, click the column header of the first column, and then, whileholding down SHIFT, click the column header of the last column.Create a table, starting in Design viewIn Design view, you first create the table structure. You then switch to Datasheet view to enter data, or enterdata by using some other method, such as pasting, or importing.1) On the Create tab, in the Tables group, click Table Design.2) For each field in your table, type a name in the Field Name column, and then select a data type from theData Type list.a) If you want, you can type a description for each field in the Description column. The description is then displayed on the status bar when the cursor is located in that field inDatasheet view. The description is also used as the status bar text for any controls in a form orreport that you create by dragging the field from the Field List pane, and for any controls that arecreated for that field when you use the Form Wizard or Report Wizard.3) After you have added all of your fields, save the table:a) On the File tab, click Save.4) You can begin typing data in the table at any time by switching to Datasheet view and clicking in the firstempty cell. You can also paste data from another source.Set field properties in Design viewRegardless of how you created your table, it is a good idea to examine and set field properties. While someproperties are available in Datasheet view, some properties can only be set in Design view. To switch toDesign view, right-click the table in the Navigation Pane and then click Design View. To see a field'sproperties, click the field in the design grid. The properties are displayed below the design grid, under FieldProperties.To see a description of each field property, click the property and read the description in the box next to theproperty list under Field Properties. You can get more detailed information by clicking the Help button.Handout: Access 2010 Create a DatabaseTopics came directly from Microsoft Access 2010 Help.ICT Training, Maxwell School of Syracuse UniversityPage 4

The following table describes some of the field properties that are commonly adjusted.Property DescriptionField SizeFor Text fields, this property sets the maximum number of characters that can be stored in thefield. The maximum is 255. For Number fields, this property sets the type of number that will bestored (Long Integer, Double, and so on). For the most efficient data storage, it is recommendedthat you allocate the least amount of space that you think you will need for the data. You canadjust the value upwards later, if your needs change.FormatThis property sets how the data is displayed. It does not affect the actual data as it is stored in thefield. You can select a predefined format or enter a custom format.InputMaskUse this property to specify a pattern for all data that will be entered in this field. This helpsensure that all data is entered correctly, and that it contains the required number of characters.For help about building an input mask, clickat the right side of the property box.DefaultValueUse this property to specify the default value that will appear in this field each time that a newrecord is added. For example, if you have a Date/Time field in which you always want to recordthe date that the record was added, you can enter "Date()" (without the quotation marks) as thedefault value.RequiredThis property sets whether a value is required in this field. If you set this property to Yes, Accessdoes not allow you to add a new record unless a value is entered for this field.Copy data from another source into an Access tableIf your data is currently stored in another program, such as Excel, you can copy and paste it into an Accesstable. In general, this works best if your data is already separated into columns, as they are in an Excelworksheet. If your data is in a word processing program, it is best to separate the columns of data by usingtabs, or to convert the data into a table in the word processing program before you copy the data. If your dataneeds any editing or manipulation (for example, separating full names into first and last names), you mightwant to do this before you copy the data, especially if you are not familiar with Access.When you paste data into an empty table, Access sets the data type of each field according to what kind ofdata it finds there. For example, if a pasted field contains nothing but date values, Access applies theDate/Time data type to that field. If the pasted field contains only the words "yes" and "no", Access appliesthe Yes/No data type to the field.Access names the fields depending on what it finds in the first row of pasted data. If the first row of pasteddata is similar in type to the rows that follow, Access determines that the first row is part of the data andassigns the fields generic names (F1, F2, etc.). If the first row of pasted data is not similar to the rows thatfollow, Access determines that the first row consists of field names. Access names the fields accordingly anddoes not include the first row in the data.If Access assigns generic field names, you should rename the fields as soon as possible to avoid confusion.Use the following procedure:1) Press CTRL S to save the table.2) In Datasheet view, double-click each column heading, and then type a descriptive field name for eachcolumn.3) Save the table again.Handout: Access 2010 Create a DatabaseTopics came directly from Microsoft Access 2010 Help.ICT Training, Maxwell School of Syracuse UniversityPage 5

Note: You can also rename the fields by switching to Design view and editing the field names there. Toswitch to Design view, right-click the table in the Navigation Pane and click Design View. To switch back toDatasheet view, double-click the table in the Navigation Pane.Import, append, or link to data from another sourceYou might have data that is stored in another program, and you want to import that data into a new table orappend it to an existing table in Access. Or you might work with people who keep their data in otherprograms, and you want to work with it in Access by linking to it. Either way, Access makes it easy to workwith data from other sources. You can import data from an Excel worksheet, from a table in another Accessdatabase, from a SharePoint Foundation list, or from a variety of other sources. The process you use differsslightly, depending on your source, but the following procedure will get you started.1) In Access, on the External Data tab, in the Import &Link group, click the command for the type of file thatyou are importing.For example, if you are importing data from an Excelworksheet, click Excel. If you don't see the program typethat you need, click More.Note: If you can't find the correct format type in the Import group, you might have to start the program inwhich you originally created the data and then use that program to save the data in a common file format(such as a delimited text file) before you can import that data into Access.2) In the Get External Data dialog box, click Browse to find the source data file, or type the full path of thesource data file in the File name box.3) Click the option that you want (all programs let you import, and some let you append or link) underSpecify how and where you want to store the data in the current database.a) You can create a new table that uses the imported data or (with some programs) you can append thedata to an existing table or create a linked table that maintains a link to the data in the source program.4) If a wizard starts, follow the instructions on the next few pages of the wizard.a) On the last page of the wizard, click Finish.b) If you import objects or link tables from an Access database, either the Import Objects or LinkTables dialog box appears. Choose the items that you want and then click OK.c) The exact process depends on whether you choose to import, append, or link data.5) Access prompts you about whether you want to save the details of the import operation that you justcompleted. If you think that you will be performing this same import operation again in the future, clickSave import steps, and then enter the details.a) You can then easily repeat the operation in the future by clicking Saved Importsin the Import &Link group on the External Data tab.b) If you don't want to save the details of the operation, click Close.6) If you chose to import a table, Access imports the data into a new table and then displays the table underthe Tables group in the Navigation Pane.a) If you chose to append data to an existing table, the data is added to that table.b) If you chose to link to data, Access creates a linked table under the Tables group in the NavigationPane.Handout: Access 2010 Create a DatabaseTopics came directly from Microsoft Access 2010 Help.ICT Training, Maxwell School of Syracuse UniversityPage 6

Open an existing Access database1) On the File tab, click Open.2) In the Open dialog box, browse to the database that you want to open.3) Do one of the following:a) Double-click the database to open it in the default mode specified in the Access Options dialog box orthe mode that was set by an administrative policy.b) Click Open to open the database for shared access in a multiuser environment so that you and otherusers can read and write to the database.c) Click the arrow next to the Open button and then click Open Read-Only to open the database forread-only access so that you can view but not edit it. Other users can still read and write to thedatabase.d) Click the arrow next to the Open button and then click Open Exclusive to open the database by usingexclusive access. When you have a database open with exclusive access, anyone else who tries to openthe database receives a "file already in use" message.e) Click the arrow next to the Open button and then click Open Exclusive Read-Only to open thedatabase for read-only access. Other users can still open the database, but they are limited to read-onlymode.Note: You can directly open a data file in an external file format, such as dBASE, Microsoft Exchange, orExcel. You can also directly open any ODBC data source, such as Microsoft SQL Server. Accessautomatically creates a new Access database in the same folder as the data file, and adds links to each table inthe external database.Tips To open one of the most recently opened databases, on the File tab, click Recent, and then click the filename for that database. Access opens the database by using the same option settings that it had the lasttime that you opened it.o If the list of recently used files is not displayed, on the File tab, click Options. In the AccessOptions dialog box, click Client Settings. Under Display, enter the number of documents todisplay in the Recent Documents list, up to a maximum of 50.Handout: Access 2010 Create a DatabaseTopics came directly from Microsoft Access 2010 Help.ICT Training, Maxwell School of Syracuse UniversityPage 7

Handout: Access 2010 Create a Database Topics came directly from Microsoft Access 2010 Help. ICT Training, Maxwell School of Syracuse University Page 2 A template from Office.com: In addition to the templates that come with Access, you can

Related Documents:

Creating a new database To create a new database, choose File New Database from the menu bar, or click the arrow next to the New icon on the Standard toolbar and select Database from the drop-down menu. Both methods open the Database Wizard. On the first page of the Database Wizard, select Create a new database and then click Next. The second page has two questions.

SQL MySQL 1. SQL of MySQL-- ระดับฐานข้อมูล( Database-Level) DROP DATABASE databaseName -- Delete the database (i rrecoverable!) DROP DATABASE IF EXISTS databaseName -- Delete if it exists CREATE DATABASE databaseName -- Create a new database CREATE DATABASE IF NOT EXISTS databaseName -- Create only if it does not exists

Creating a new database To create a new database, select File New Database from the menu bar, or click the arrow next to the New icon on the Standard toolbar and select Database from the drop-down menu.Both methods open the Database Wizard. On the first page of the Database Wizard, select Create a new database and then click Next. The second page has two questions.

Creating a new database To create a new database, choose File New Database from the menu bar, or click the arrow next to the New icon on the Standard toolbar and select Database from the drop down menu. Both methods open the Database Wizard. On the first page of the Database Wizard, select Create a new database and then click Next. The second page has two questions.

Database Applications and SQL 12 The DBMS 15 The Database 16 Personal Versus Enterprise-Class Database Systems 18 What Is Microsoft Access? 18 What Is an Enterprise-Class Database System? 19 Database Design 21 Database Design from Existing Data 21 Database Design for New Systems Development 23 Database Redesign 23

Getting Started with Database Classic Cloud Service. About Oracle Database Classic Cloud Service1-1. About Database Classic Cloud Service Database Deployments1-2. Oracle Database Software Release1-3. Oracle Database Software Edition1-3. Oracle Database Type1-4. Computing Power1-5. Database Storage1-5. Automatic Backup Configuration1-6

database online, see “Bring a Database Online” on page 55 Create New Database. Users of The Raiser’s Edge, The Financial Edge, The Education Edge, and Blackbaud Student Information System who are new to Blackbaud software or purchase additional databases must use the Create New Database Wizard to create a database to use with the program. For

of the New database wizard deals with the setup of the relational database. 6. In the New database wizard page, check Use existing (since the database has already been created in the DBMS; see3) and press Next . 7. In the Locate database wizard page, press the Build button to create a connection to the relational database.