QUESTION: How do I change ODBC time-out in Microsoft Access?
ANSWER: Microsoft Access defaults to waiting 60-seconds for ODBC calls to complete. Our experience suggests that most of the queries run against the warehouse, regardless of database, usually take longer than 60-seconds. This could account for your ODBC time-out errors. Access allows you to change this setting while in the query design screen for the current query only. To do this:
- Using the mouse, move your cursor to the section of the screen which displays the tables you want to query (the upper portion of the screen).
- Click the Right mouse button
- In the window titled Query Properties, you should see a menu with one of the selections being Properties.
- Select Properties.
- You should see another screen which shows the ODBC time-out value of 60 along with some other information.
- Change the ODBC time-out value to 0 (zero).
- Close the window by clicking on the X in the upper right hand corner of the window.
An alternative method of accessing the Query Properties window is as follows:
- From the View option on the tool bar, select Properties.
- In the window titled Query Properties, you should see a menu with one of the selections being Properties.
- You should see another screen which shows the ODBC time-out value of 60 along with some other information.
- Change the ODBC time-out value to 0 (zero).
- Close the window by clicking on the X in the upper right hand corner of the window.
QUESTION: How can I link tables and import tables, queries and reports?
ANSWER: Assume that a fellow employee has a financial report that you think would be useful to you. His/Her Access file may have lots of tables, queries and reports that you do not need but by importing you can select the reports and the corresponding queries and tables that you do want to use.
Before you begin linking and importing tables make sure you know which tables and queries you need in support of the report that you want to import and customize. The example below assumes that you have already downloaded the rpt1800.mdb database from the Microsoft Access Reports Using the IBIS Financial Database web page. Note: You cannot import reports from Access 97 into Access V7 for Windows 95, but you can import the tables and queries. You can import reports, queries and tables from Access V7 for Windows 95 into Access 97. You can import reports, queries and tables from the same versions of Access.
Step 1
- Open Microsoft â Access.
- Create a new database using a blank database.
- Save the database to a location of your choice.
- Click on create.
Step 2:
- Now get the tables with which you want to use.
- Right click in the white area of the table window.
- Click on the link tables… option.
- Next, find the files of type: list box.
- Click on the down arrow.
- The options area should drop down and show different types from that you can select.
- Find the ODBC Databases() option.
- Click on the ODBC Databases() option.
Step 3:
- Now you should see the Select Data Source window.
- Click on the Machine Data Source tab.
- Then look for Warehouse under machine source name.
- Click on Warehouse.
- Click OK.
- You will now be prompted with the SQL Server Login.
- Enter your Login ID and Password.
Step 4:
- You should now see the Link Tables window.
- Click on the Select All button .
- Click OK.
Step 5:
- Access will now ask you to Select a Unique Record Identifier for each of the tables.
- Click cancel each time Access asks you to select a Unique Record Identifier.
- Note: It should ask you to select a Unique Record Identifier 6 times, once for each of the 6 tables to which you are linking.
Step 6
- Notice that you are now back in your original Access database window and it should display all of the tables to which you just linked.
- Each table should have a globe next to it, showing that it is linked to the warehouse and not to a local table on a client.
Step 7:
- Click on the tables tab.
- Right click in the white (not on any of the tables) part of the screen.
Step 8:
- This step is where you find the Access database file from which you want to import the tables, queries, and reports.
- Remember: this documentation uses the rpt1800 database as an example for importing tables, queries, and reports.
Click on the Import… option in the menu box.
- Now find the rpt1800 database in the accesrpt folder on your C: drive.
Click on the rpt1800 database.
Click Import.
- Note: When importing tables, do not import any tables from the data warehouse (tables that have a picture of a globe are linked to the data warehouse). In the rpt1800 database the last three tables are not on the warehouse. Those three tables are the tables that you want to import.
Step 9:
- You should now see an Import Objects window with the tables tab highlighted.
- Click on the tables you wish to import.
- You can also select any queries and reports that you want to import while in the same window.
- Simply click the query tab.
- Click on the queries you want to import or click on the select all button (you do not have to hold down the ctrl button to select multiple queries, reports or tables).
- Click on the reports tab.
- Click on the reports that you want to import.
- To double check that you have selected all of the tables, queries and reports that you want, simply click on the corresponding tab and check to see if the items you want are highlighted.
- After you have all of the tables, queries, and reports that you want highlighted, click OK.
Step 10:
- You should notice that Access shows you the status as it is importing the tables, queries and reports.
- When it is finished importing, you should be back in your original database window.
- Check to make sure that the tables, queries and reports that you imported are there by clicking the tables, queries and reports tabs.
QUESTION: Why can't I see my new data table(s) using Access 7?
ANSWER: You will see the new data table(s) at log-in but in this case the log-in process contains an additional step.
- Start Access.
- Under File, select Link to the tables.
- Under File of Type, specify ODBC database.
- Select the data source.
- Select the warehouse.
- Enter your userID and password but Do Not Press Enter.
- Choose Options.
- At the database drop down menu, select your database.
The additional data table(s) will be displayed for your selection.
QUESTION: How do I view a "code set"?
ANSWER: There are several ways to view a "code set" listed below:
To view on the Warehouse:
Go to the Web site housing the warehouse documentation.
Navigate your way to the database.
Select the Table.
Click on the codes set name to the right of the field name.
To view on-line (AIS):
Type CODES at the bottom line of an ISIS screen.
Press Enter.
For a printed copy:
Log on to Roscoe.
Run EN.CODESET.
QUESTION: What are some troubleshooting techniques for connecting my PC with the Data Warehouse?
ANSWER: Use the ISQL SQL client utility:
- Launch ISQL.
- Connect to the warehouse server.
- Choose a database.
- Type in the following: Select * from a table name. Example:
-- Choose the IBIS database.
-- Select * from DLT048.
- Choose Execute Query.
The SQL connection is correct, if data is returned or you receive a message stating there is no data in this table. If you do not receive any data or a message stating no data is available, check the following:
- ODBC setup
- the application being used (Excel, Access, etc.)
QUESTION: Why can't I see my new data table(s) using Excel?
ANSWER: You will see the new data table(s) at log-in but in this case, the log-in process contains an additional step.
- Under Data menu, choose get external data.
- Select the data source.
- Select the warehouse.
- Enter your userID and password but Do Not Press Enter.
- Choose Options.
- At the database drop down menu, select your database.
The additional data table(s) will be displayed for your selection.