Professional Documents
Culture Documents
r
Training
&
Support
Academic Computing& Networking
Services
Services
Compute
r
Training
221 Weber Building
&
(970) 491-7653
Support
Academic Computing& Networking
Services
Services
Business and Financial Services
FRS - Financial Reporting Systems
CIS - Campus Information Systems
Contact: John Hunter, 1-1956
Application available at: http://www.colostate.edu/Depts/BusFin/IMAGES/allsysap.gif
5) This opens the Select Data Source box. Select the Machine Data Source tab (as shown
below) and choose Delphi from that list. Be aware that this list is created by your system
administrator through the setup of the ODBC driver on your machine. If you fail to see
Delphi listed here or an error message is displayed when you click on it, then you should
check with the system administrator for your machine.
6) You will now be prompted for your Delphi login and password to logon to Oracle (the type
of database where the Delphi data resides).
7) After successfully logging in, you will see a list of Delphi tables (see example below). Click
on the Delphi table you wish to link to and choose OK. You may click on more than one
table if you wish to create a link to several tables with the same Access database. Click on as
many tables as desired (the background turns blue to indicate selection), then choose OK.
8) Once the table is linked, you will see it appear in your list of tables within Access. Notice
that the icon to the left of the table name is different, indicating that this is a linked table
coming from a source outside your network.
9) You may now use the linked data in the following manner:
a)
Display or print the datasheet;
b)
Sort or filter the datasheet;
c)
Create queries to display subsets of data or to make local tables from the data;
d)
Create forms to display the data;
e)
Create reports to print the data in a summarized fashion.
2) From the Data menu, choose Get External Data. You will see a submenu displayed. If you
have not previously linked to data, or have not saved a query to retrieve the data, then choose
Create New Query.
3) A dialog box will open from where you can Choose the Data Source;
4) Unless you have previously created and saved a query to use to retrieve the data, you should
click on the Databases tab and choose Delphi from the list. Click on OK.
5) You will now be asked to log onto Oracle. Enter your user id and password.
6) If you have checked Use the Query Wizard to create/edit queries in the Choose Data Source
dialog box (see above), then the wizard will appear to help you create a query. Note: If you
do not choose to use the wizard, then you will need to be familiar with Microsoft Query
(somewhat different than query in Access) and create your own query to retrieve the tables
and fields you want.
7) The Query Wizard allows you to choose the table and fields you wish to bring into Excel.
You can also preview the data in any field by selecting the field name from the table and
clicking on the Preview Now button.
8) Once you have selected the table and fields you wish to use, you can click on Next which
will take you to the Filtering screen where you may apply criteria to your query. For
example, if you are retrieving student information, you may want to see only students from a
specific college with a specific major. Filtering allows you to bring in only the records you
need. Note: In Access you must first link to the table, then run a filter or query after the
table is linked.
9) Once you have filtered the data, you can then select sort criteria.
If you want to automatically run a query and retrieve the most current data from the external
source then you can create a report template. A report template can contain an external data
range or PivotTable. If the appropriate ODBC driver is installed, Microsoft Excel will
automatically refresh the external data range each time the report template is opened. Microsoft
Excel also updates all the formulas and charts when it refreshes the data. When you save the
report template, the external data range is removed.
To create a template that automatically retrieves external data when you open it:
1)
Retrieve external data (as described above), creating a data range on your worksheet (this
method also works with Pivot Tables);
2)
Format the workbook the way you want;
3)
Choose File, Save. In File name box, type the name you want;
4)
In the Save as type box, click Template (*.xlt) and select the drive and folder where you
wish to store the template. Click Save.
5)
When asked if you wish to remove the external data range from the workbook and
automatically refresh it the next time the report template is opened, click Yes.
Note: You can check the status of a query that's running in the background and taking a long
time to return the data. While the query is executing, click Refresh Status on the External Data
toolbar. To cancel the query, click Stop Refresh.
Saving a Query
You can save a query at the time you are using the Query Wizard by clicking on the Save Query
button. When you save a query, only the structure is saved. The next time you run the query, it
will retrieve a new copy of the external data.
You can also save a query structure through MS Query after you have
exited the Wizard. To save a query, choose Edit Query from the External
Data Toolbar or choose Data, Get External Data, Edit Query from the
menu.
Queries are saved as files with a .dqy extension. After a query has been saved, you may run it
again by opening Excel, and choosing Tools, Get External Data, Run Database Query. Find
the filename of the query you saved and open it to run it and have it retrieve the external data
according to the querys criteria.