MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 21st, 2002, 03:29 AM   #1
nc
New Member
 
Join Date: May 2002
Posts: 23
Default

hi all.
i m very frastrated after spending hours to solve this problem but still....
well, i am creating a pivot table in Excel. The data source is an Access query. but the data source for that Access query is a link table, which links to an SQL database on a server. I used ODBC to link the table in Access. so, when i try to get the data source for the pivot table, the error msg says "ODBC- Connection to 'Team_Health_Report'(the DSN)Failed".
so, my question is: is it i can't have the data source for Pivot table from database in which the data source is a link table (to a server)? i believe i can solve this problem if i use Import table instaed of Link table for Access but i need the data to be updated to time. Can table created using Import table be updated to time?
i am really scratching my head here. sorry for confusing all for Access and Excel but i really need your help. Thanks.

rgds, nc
nc is offline   Reply With Quote
Old May 21st, 2002, 03:41 AM   #2
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-05-21 02:29, nc wrote:
hi all.
i m very frastrated after spending hours to solve this problem but still....
well, i am creating a pivot table in Excel. The data source is an Access query. but the data source for that Access query is a link table, which links to an SQL database on a server. I used ODBC to link the table in Access. so, when i try to get the data source for the pivot table, the error msg says "ODBC- Connection to 'Team_Health_Report'(the DSN)Failed".
so, my question is: is it i can't have the data source for Pivot table from database in which the data source is a link table (to a server)? i believe i can solve this problem if i use Import table instaed of Link table for Access but i need the data to be updated to time. Can table created using Import table be updated to time?
i am really scratching my head here. sorry for confusing all for Access and Excel but i really need your help. Thanks.

rgds, nc
I'm not the hottest person at Queries, but I Query linked tables all the time, these are also linked to SQL Server. I don't have any problems.

Are you Querying directly to the Pivot Table.

The way I do it is to Query to a Data sheet and link the Pivot to that. I don't know if this is helpful?
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 21st, 2002, 04:04 AM   #3
Lee Attlesey
New Member
 
Join Date: May 2002
Location: Cambridge, UK
Posts: 22
Default

Hi nc

I use exactly the same way of updating my pivot tables.

I have a large dataset in Access and created linked pivot table through an ODBC link to a query in the db.

I have found though that if you don't have full access to the specific directory of where the db is located this may not work.

I'm using MS Office '97 & NT

Lee Attlesey is offline   Reply With Quote
Old May 21st, 2002, 09:43 PM   #4
nc
New Member
 
Join Date: May 2002
Posts: 23
Default

Hi, Ian and Lee, and all
well, i think both of u worked the way exactly i want to but i realy can't get the data. It keeps saying odbc connection to (DSN) failed. I tried to get the data source for pivot table from import table instead of link table and it works....
Lee, i am using MS Access 97 but Excel 2000. so, guys, could it be the problem? also, lee, u mentioned that if i don't have full access to the specific directory of where the db is located it may not work. what do u mean yb full access? i am not the owner of the db and i need password to view the data. in fact, the db i am connected to is a view table created from another mass db. so, how??


nc is offline   Reply With Quote
Old May 22nd, 2002, 04:27 AM   #5
Lee Attlesey
New Member
 
Join Date: May 2002
Location: Cambridge, UK
Posts: 22
Default

Hi nc

Firstly, have you tried saving the password on the linked table, if you haven't this may be a reason as to why the link fails.

I'm not sure about the Excel 2000 thing as I don't use it, perhaps someone else can offer some advice?

In regard to full access, I have to connect to a db on our network, at one point I only had read only access to the directory so everytime I refreshed the pivot table, I received a message stating I had problems obtaining data. This was only resolved when my access to the directory was changed.

Have you tried creating a query from the linked table(s) and linking your pivot table to that. This is how I keep a live link with a refresh on opening the pivot table.
Lee Attlesey is offline   Reply With Quote
Old May 22nd, 2002, 07:58 PM   #6
nc
New Member
 
Join Date: May 2002
Posts: 23
Default

hi all,
lee, my data source for the pivot table is a query created from the linked table. that's why i got the error message. also, how to save password on the linked table?
Ian, what do u mean by Query to a Data sheet and link the Pivot to that? ya, i did the query on the linked table and it has no problem. the problem is when i tried to link my pivot table in excel 2000 to the query on the linked table in Access 97, i can't get the data source. but it works with the import table created from the same db.
HOW?? WHAT's the problem?? 1 more question: data in linked table will be updated automatically on the local drive, rite? what about import table?
thanks to all in advance.

rgds,
nc

[ This Message was edited by: nc on 2002-05-22 18:59 ]
nc is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes