Skip to main content

Microsoft Access MS Access Basics Tips and Trick-7

Adding Data An Access database is not a file in the same sense as a Microsoft Office Word document or a Microsoft Office PowerPoint are. Instead, an Access database is a collection of objects like tables, forms, reports, queries etc. that must work together for a database to function properly. We have now created two tables with all of the fields and field properties necessary in our database. To view, change, insert, or delete data in a table within Access, you can use the table’s Datasheet View. A datasheet is a simple way to look at your data in rows and columns without any special formatting. Whenever you create a new web table, Access automatically creates two views that you can start using immediately for data entry. A table open in Datasheet View resembles an Excel worksheet, and you can type or paste data into one or more fields. You do not need to explicitly save your data. Access commits your changes to the table when you move the cursor to a new field in the same row, or whe...

Microsoft Access MS Access Basics Tips and Trick-6A

Create Tables

When you create a database, you store your data in tables. Because other database objects depend so heavily on tables, you should always start your design of a database by creating all of its tables and then creating any other object. Before you create tables, carefully consider your requirements and determine all the tables that you need.

Let us try and create the first table that will store the basic contact information concerning the employees as shown in the following table −

Field NameData Type
EmployeelDAutoNumber
FirstNameShort Text
LastNameShort Text
Address1Short Text
Address2Short Text
CityShort Text
StateShort Text
ZipShort Text
PhoneShort Text
Phone TypeShort Text

Let us now have short text as the data type for all these fields and open a blank database in Access.

This is where we left things off. We created the database and then Access automatically opened up this table-one-datasheet view for a table.

Let us now go to the Field tab and you will see that it is also automatically created. The ID which is an AutoNumber field acts as our unique identifier and is the primary key for this table.

The ID field has already been created and we now want to rename it to suit our conditions. This is an Employee table and this will be the unique identifier for our employees.

Click on the Name & Caption option in the Ribbon and you will see the following dialog box.

Change the name of this field to EmployeeID to make it more specific to this table. Enter the other optional information if you want and click Ok.

We now have our employee ID field with the caption Employee ID. This is automatically set to auto number so we don't really need to change the data type.

Let us now add some more fields by clicking on click to add.

Choose Short Text as the field. When you choose short text, Access will then highlight that field name automatically and all you have to do is type the field name.

Type FirstName as the field name. Similarly, add all the required fields as shown in the following screenshot.

Once all the fields are added, click the Save icon.

You will now see the Save As dialog box, where you can enter a table name for the table.

Enter the name of your table in the Table Name field. Here the tbl prefix stands for table. Let us click Ok and you will see your table in the navigation pane.




Comments

Popular posts from this blog

Microsoft PowerPoint FORMATTING PRESENTATION Tips and Tricks-12

Using Slide Master in Powerpoint 2010 Slide master is simple way of applying changes to the entire slide. Every presentation has at least one slide master, but you can have more than one. Using features like copy/ paste and format painting you can make changes to different sections within the presentation to make them look similar, however, if you want to use a theme and background throughout the slide, using the slide master is a simpler and more graceful way of approaching it. Given below are the steps to customise your slide master. Step (1):  Go to  Master Views  group under the  View  ribbon. Step (2):  Click on  Slide Master  to open the  Slide Master  Ribbon. The top most slide in the left sidebar is the  Master  slide. All the slides within this master template would follow the settings you add on this master slide. Step (3):  You can make changes to the master slide in terms of the theme, design, font properties, ...

Microsoft PowerPoint MS POWERPOINT BASICS Tips and Tricks-11

Adding Slide Notes Powerpoint 2010 Slides notes can be very useful tools for presentation. These notes are not displayed on the screen in the  Slide Show  mode, but the presenter can see them so they can prepare well to present the slides. Depending on your printing settings, you can also print out the slide notes along with the slides. This chapter will show you how to add slide notes to an existing presentation. Step (1):  To locate the slide notes set the view in  Normal  mode. Step (2):  Slide Notes section is indicated by the "Click to add notes". Step (3):  You can click on the top border and drag the section to increase its size to make it easier to type. Step (4):  Type your text in this section as slide notes. You can only use bullets, numbering and alignment functions in the Slide Notes section. All other functions can be selected, but will apply to the selected slide, not the notes. Slide notes can be printed from the print menu under B...

Microsoft Excel-office ADVANCED OPERATIONS Tips and Tricks-8

Using Macros in Excel 2010 Macros in MS Excel Macros enable you to automate almost any task that you can undertake in Excel 2010. By using macro recorder from  View Tab » Macro Dropdown  to record tasks that you perform routinely, you not only speed up the procedure considerably but you are assured that each step in a task is carried out the same way each and every time you perform a task. To view macros choose  View Tab » Macro dropdown . Macro Options View tab contains a Macros command button to which a dropdown menu containing the following three options. View Macros  − Opens the Macro dialog box where you can select a macro to run or edit. Record Macro  − Opens the Record Macro dialog box where you define the settings for your new macro and then start the macro recorder; this is the same as clicking the Record Macro button on the Status bar. Use Relative References  − Uses relative cell addresses when recording a macro, making the macro more versatile b...