33
06/17/22 1 Microsoft Access Linking Microsoft Access Linking Creating Reports and Queries from Techfim Tables Presented by Lydia Vrska Repo rt For m Web Quer y Tab le Use r DB Securi ty Serve r Repo rt For m Web Quer y Tab le Use r DB Securi ty Serve r

DB2 PowerPoint Presentation

  • Upload
    tess98

  • View
    3.853

  • Download
    0

Embed Size (px)

Citation preview

Page 1: DB2 PowerPoint Presentation

04/12/231

Microsoft Access LinkingMicrosoft Access LinkingCreating Reports and Queries from Techfim Tables

Presented by Lydia Vrska

Report

Form

Web

QueryTableUser

DBSecurityServer

Report

Form

Web

QueryTableUser

DBSecurityServer

Page 2: DB2 PowerPoint Presentation

04/12/232

Introduction Introduction

What are DB2 TablesWhy do I need to Link to the TablesHow can I use the informationUsing Microsoft Access to link and run

queries and report

Page 3: DB2 PowerPoint Presentation

04/12/233

DB2 Database TablesDB2 Database TablesThe DB2 Database is stored on a computer

(server or mainframe) to allow access to multiple users from their own PCs.

A DB2 Database is a set of tables with rows and columns for storing data.

The data is is accessed using SQL (Structured Query Language) to retrieve a subset of data stored in the tables and is readable in PC format.

Page 4: DB2 PowerPoint Presentation

04/12/234

Linking to the Techfim DB2 Linking to the Techfim DB2 Tables on the SQL ServerTables on the SQL Server

The tables can be linked for viewing or querying from remote PCs (users) that would otherwise not be accessible when stored on a Mainframe Computer

The SQL Server is updated daily – Mainframe tables are recreated on the server in PC-readable format

Users can customize queries, create reports and forms for daily, weekly, monthly, or yearly reports or forms.

Report

Form

Web

QueryTableUser

DBSecurityServer

Page 5: DB2 PowerPoint Presentation

04/12/235

How can I use the InformationHow can I use the Information

Data from Techfim Tables can be used to automate reports, create forms, or look up information in a format not available using TechNet on the mainframe

Queries and reports can be run from multiples tables on one query or report

They can also be modified at any time to change the data that is retrieved

Page 6: DB2 PowerPoint Presentation

04/12/236

How do I link to the DB2 TablesHow do I link to the DB2 Tables

The link is set up via MS Access The linking instructions are at

www.itis.ttu.edu/techfimdataOnce the links are established, you are

ready to run queries and create reports and forms.

Page 7: DB2 PowerPoint Presentation

04/12/237

Which Tables do I need?Which Tables do I need?Most of the tables have a name embedded

that is similar to Techfim Table names– For Example: FAS2 might be called

“dbo_TFFASFASCTB” The tables can be renamed on your database

linkIf you do not have authority to view the

tables you will not be able to run queries against them or view the data

Page 8: DB2 PowerPoint Presentation

04/12/238

Things to RememberThings to Remember

The tables on the SQL Server are updated nightly

Some data on Techfim could vary if it was updated “after”“after” the SQL Server update.

The ”links” ”links” to the tables do not use up disk space on your computer unless you copy the data from a table and create a new table in your database.

Page 9: DB2 PowerPoint Presentation

04/12/239

Where to Get More InformationWhere to Get More Information

View this information again by clicking on PowerPoint on Linking to DB2 TablesFor questions or assistance on customizing

the queries, you can call me at 742-3255 X229.

Page 10: DB2 PowerPoint Presentation

04/12/2310

Hands On…Hands On…

Open Microsoft Access to begin the hands on session

… or continue with demo

Page 11: DB2 PowerPoint Presentation

04/12/2311

Step 1 – Request security access Step 1 – Request security access to the TechFIM Data Systemto the TechFIM Data System

Click here to test access

Page 12: DB2 PowerPoint Presentation

04/12/2312

Enter your Eraider userid and Enter your Eraider userid and password.password.

Page 13: DB2 PowerPoint Presentation

04/12/2313

When you receive this message, When you receive this message, you can begin running queries!you can begin running queries!

(USER) “ALREADY HAS ACCESS TO THE TECHFIM DATA SYSTEM”

Page 14: DB2 PowerPoint Presentation

04/12/2314

Setting up your Database in Setting up your Database in Microsoft AccessMicrosoft Access

Create a NEW database

Page 15: DB2 PowerPoint Presentation

04/12/2315

Give the database a name Give the database a name meaningful “to you”meaningful “to you”

Page 16: DB2 PowerPoint Presentation

04/12/2316

Link to the SQL Server TablesLink to the SQL Server Tables

1. Click on New

2. Then Link Tables

3. Then “OK”

Page 17: DB2 PowerPoint Presentation

04/12/2317

Select ‘Files of Type” ODBC Select ‘Files of Type” ODBC DatabasesDatabases

Click on Click on the “pull the “pull down” down” box and box and scrollscroll

Page 18: DB2 PowerPoint Presentation

04/12/2318

Select Techfimdata sourceSelect Techfimdata source

Click on TECHFIMSQLSERVER

Page 19: DB2 PowerPoint Presentation

04/12/2319

Enter your “Eraider” userid and Enter your “Eraider” userid and passwordpassword

Enter userid and password then click “OK”.

Page 20: DB2 PowerPoint Presentation

04/12/2320

You can “Select All” or select a You can “Select All” or select a specific table(s) that you wish to specific table(s) that you wish to accessaccess

Click one or many to highlight (select) then click “OK”

Page 21: DB2 PowerPoint Presentation

04/12/2321

Each table will display the fields Each table will display the fields available in each tableavailable in each table

Click OK if that is the correct table (Hint: hold the enter key down until all the tables have linked)

Page 22: DB2 PowerPoint Presentation

04/12/2322

The link to the table(s) can be The link to the table(s) can be renamedrenamed

Right Click and select “rename” then type a name that makes sense to you

Page 23: DB2 PowerPoint Presentation

04/12/2323

Create a QueryCreate a Query

Click QUERIES, then on New, then Simple Query Wizard and click “OK”.

Page 24: DB2 PowerPoint Presentation

04/12/2324

Select the table that contains Select the table that contains the information you needthe information you need

•Scroll down to select the table

•Select the fields

•Click on Next

Page 25: DB2 PowerPoint Presentation

04/12/2325

Name your queryName your query

Give your query a meaningful name

Then click “Finish”

Page 26: DB2 PowerPoint Presentation

04/12/2326

View and Modify Query ResultsView and Modify Query Results

The Query Results are displayed

To change the results, click on the “design” icon

Page 27: DB2 PowerPoint Presentation

04/12/2327

Create sorting and other criteria Create sorting and other criteria for data that is displayedfor data that is displayed

Fields can be SORTED or additional criteria

(Example: show only values greater than 04 in this field)

Page 28: DB2 PowerPoint Presentation

04/12/2328

View DataView Data

Records of account type > 04

In Ascending order

Page 29: DB2 PowerPoint Presentation

04/12/2329

FormsForms

Forms can be created for capturing or displaying data in a format that does not look like a table or spreadsheet

Forms can be modified, edited, printed, published to a web site or sent by email

Logos and other graphics can be added to enhance the appearance of the form

Page 30: DB2 PowerPoint Presentation

04/12/2330

Form ExampleForm Example

Page 31: DB2 PowerPoint Presentation

04/12/2331

ReportsReports

Reports are “Read and Print” only and can be modified to show different views and sort structure

A report can be run against queries or tables (or both) to create a “formatted view” of data

Reports can be emailed or published to a web site

Page 32: DB2 PowerPoint Presentation

04/12/2332

Report SampleReport Sample

Page 33: DB2 PowerPoint Presentation

04/12/2333

Adding Security to DatabasesAdding Security to Databases

If a Database is accessed by multiple users, security can be added to prevent data from being modified.

Users can also be limited to certain views of the data.

Techfimdata security does not allow changes to the db2 tables; however tables can be copied and edited within the database to create reports or queries as of a specific date.