Importing Data from a Spreadsheet that contains Phone Numbers, ZIP Codes and other similar string data that looks like a number If you came to this presentation.

Slides:



Advertisements
Similar presentations
BASIC SKILLS AND TOOLS USING ACCESS
Advertisements

® Microsoft Office 2010 Integrating Word, Excel and Access.
Benchmark Series Microsoft Access 2010 Level 1
Microsoft Excel 2010 Chapter 7
Integrating Access with the Web and with Other Programs.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
1 Student Registration Import Must be imported into PBA by 2/18.
SPSS 1: An Introduction to the Statistical Package SPSS Suzie Cro MRC Clinical Trials Unit.
FIRST COURSE Creating Web Pages with Microsoft Office 2007.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Pasewark & Pasewark 1 Access Lesson 6 Integrating Access Microsoft Office 2007: Introductory.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Ogden Air Logistics Center. Purpose of Excel2FV Many agencies produce point lists of different data (target lists, force locations, etc.) in either Excel.
Chapter 2 Querying a Database
Creating an ERD in SQL Server If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or.
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Chapter 1 Databases and Database Objects: An Introduction
1 Lesson 22 Getting Started with Access Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Creating a New Database If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or press.
Analysing Data with Excel Importing Data from a Text File To import data from a text file: 1.Start Excel. 2.Click File, click New, click Workbook,
Creating a Web Site to Gather Data and Conduct Research.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
Office of Education Technology (OET) Active Directory Bulk Import Saturday March 11, 2006 /8:30 – 10:30 AM.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
Lesson 17 Getting Started with Access Essentials
CREATING TEMPLATES CREATING CUSTOM CHARACTERS IMPORTING BATCH DATA SAVING DATA & TEMPLATES CREATING SERIES DATA PRINTING THE DATA.
Importing Data from a Spreadsheet If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 23 Getting Started with Access Essentials 1 Morrison / Wells / Ruffolo.
Analyzing Data Using Access. Creating a new database To create a new database 1.Start Access. In the Task Pane, click Blank Database. 2.The File New Database.
TUTORIAL 9 INSTRUCTOR: HANIF ULLAH ID: OFFICE #: 2029 DATE: 22/04/2012 Introduction to MS Project 2007.
BUSINESS DRIVEN TECHNOLOGY Plug-In T5 Touring Access.
® Microsoft Office 2010 Integrating Word, Excel, Access, and PowerPoint.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
® Microsoft Office 2010 Integrating Word, Excel, Access, and PowerPoint.
Entering Data in One of the Independent Entity Tables and the Associative Entity Table of a M:M Relationship* If you came to this presentation via a web.
Creating an Access Project* If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
FIRST COURSE Word Tutorial 6 Using Mail Merge. Objectives Learn about the mail merge process Use the Mail Merge task pane Select a main document Create.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
FIRST COURSE Integration Tutorial 2 Integrating Word, Excel, and Access.
Importing Data from a Spreadsheet If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse.
Importing Data from a Spreadsheet that contains Phone Numbers, ZIP Codes and other similar string data that looks like a number If you came to this presentation.
Creating a New Database If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or press.
Creating and Editing a Web Page
Key Applications Module Lesson 22 — Managing and Reporting Database Information Computer Literacy BASICS.
1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Creating Functions If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or press space.
Creating Functions This presentation was prepared by Professor Steve Ross, with the advice of other MIS Faculty, for use in MIS Classes at Western Washington.
Chapter 7 Creating Templates, Importing Data, and Working with SmartArt, Images, and Screen Shots Microsoft Excel 2013.
Mail Merge Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter.
For Letters, Labels or s Mail Merge For Letters, Labels or s.
Prepare data for importing
Performing Mail Merges
Creating a New Database
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Creating and Modifying Queries
Formatting Cells and Ranges
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Office Access 2003
Microsoft Official Academic Course, Access 2016
Microsoft Office Access 2003
Introduction to Database Programs
Lesson 23 Getting Started with Access Essentials
Introduction to Database Programs
Tutorial 8 Sharing, Integrating, and Analyzing Data
Presentation transcript:

Importing Data from a Spreadsheet that contains Phone Numbers, ZIP Codes and other similar string data that looks like a number If you came to this presentation via a web browser, right-click and choose Full Screen before proceeding. Click mouse or press space bar to continue. This presentation was prepared by Professor Steve Ross, with the advice of other MIS Faculty, for use in MIS Classes at Western Washington University. Please contact Dr. Ross for permission to use in other settings..Dr. Ross The Sister Cities Database Development Project

Wizards are Wonderful, but … Complications are not uncommon with import Wizards. The Wizard interprets the data according to the rules it has been programmed with. Sometimes that interpretation incorrect. One such problem can occur when the Excel data contains strings that look like numbers, but are not actually numbers. For example, telephone numbers or ZIP codes. The Wizard will define the phone number in the import table as a numeric field in the database table it creates. The phone numbers and the ZIP codes get corrupted in the process.

Solutions to the Wizard Problem Solutions to this particular problem may include… 1.Exporting the data from the Excel spreadsheet to a text file (e.g. NotePad) first, then importing the data from the NotePad document, rather than directly from the spreadsheet. 2.Modifying the data in the Excel spreadsheet so it is clearly a string. For example, you could add x to the beginning of every phone number or ZIP code: X If you modify the data, of course you must undo the alteration after the data has been imported. The following slides show how Method 1 might be implemented. For extra practice, you can try Method 2 on your own.

Export the Spreadsheet 2.File tab – Save As command a.Give the file a recognizable name, e.g., WorkersTab b.Save as type: Text (Tab delimited) c.If there are multiple sheets, a dialog box will ask if it is OK to save only active sheet – click OK

3.Import the data a.Right-click Database name; choose Tasks; choose Import Data…; click Next > on the splash screen b.Choose the Data Source (Flat File Source) and browse to locate the file c.Note these settings d.click Next > twice Import the Data

3.Import the data e.Choose the destination then click Next >

Import the Data 3.Import the data f.Select Source Table g.Click Edit Mappings… (see next slide)

Import the Data 3.Import the data g.Click Edit Mappings… change as req., click OK, then Next > h.{ on the next screen } Choose Run Package immediately; click Next > i.{ on the next screen } Click Finish

Import the Data 3.Import the data j.Read the report, then Close.

Verify the Results 4.Inspect the table (right-click table name, choose Select Top 1000 Rows) a.Data in expected columns b.Numeric data format, ensure no loss c.Character data, check for truncation

Analyze Data in Import Table 5.Modify the SELECT query created in Step 4 … a.Remove TOP 1000 b.Add functions to determine maximum length of strings and maximum value of numbers: SELECT MAX(LEN([LastName])) AS [LastName],MAX(LEN([FirstName])) AS [FirstName],MAX(LEN([MidName])) AS [MidName],MAX([AnnualPay1000]) AS [AnnualPay1000],MAX(LEN([DepartmentName])) AS [DepartmentName],MAX(LEN([Rank])) AS [Rank],MAX([BudgetAuthorityIn1000]) AS [BudgetAuthorityIn1000],MAX([PersonalStaff]) AS [PersonalStaff],MAX(LEN([MailCode])) AS [MailCode] FROM [createdbexample].[dbo].[WorkersTab]

Create and Populate the Final Table As with the method demonstrated in … ImportingData - General Case (including data with large strings and integers) … you should then build a final table and copy the data from the temporary import table to the final table. SeeImportingData - Moving Data the Import Table to the Final Table for details.