Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Error in querying data from MS Access

We are compiling feedback data from a web site. We track general categories
of feedback or questions, and have used Access queries to group them by
calendar month and by category or sub-category (i.e. "general inquiry",
"password problem", "can't locate document")

We want to graphically represent these in charts, but some of the queries
have more than six categories or columns, so we can't use the tool from
within Access.

The solution is to link Excel worksheets with charts to dynamic queries in
the Access database.

This worked fine for the categories (18 of them). When a new month has
elapsed, the charts are automatically expanding. Fine.

The problem comes when working with sub-categories. Some months there are
no feedbacks for a particular family of comments, so on the crosstab queries
in Access, it simply doesn't create the row. Same if a particular colum has
no entries so far - the column disappears.

We want our charts to be consistent, so we want all columns and all rows to
show up in charts, even if the chart shows a drop to zero. To make sure the
Access crosstab query reflects this, I use the "Nz" function to fill with
zeros when a null value exists, and the queries look great in Access.

When I go to grab the "external data" in Excel, I get an error for
"unrecognized function 'Nz'" and can't creat the link to the Access data. It
does if there is either the Nz call in the actual query, or if it's in any of
the queries feeding into the query.

I don't want my end user to have to manually change the chart definitions,
so cutting and pasting is out.

Does anyone know how to work around this problem, and does anyone fathom why
Excel wouldn't recognize a function from a "sister" application?
Frustrating, but I'm hoping my frustration is born from ignorance. Any help
is appreciated.

T
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Error in querying data from MS Access

I worked around the "Nz" issue by using "IIf" and "IsNull()" statements.
Also, I had to make sure it wasn't just in the crosstabs, but in the primary
queries upon which the crosstabs were built.

"aemAndy" wrote:

We are compiling feedback data from a web site. We track general categories
of feedback or questions, and have used Access queries to group them by
calendar month and by category or sub-category (i.e. "general inquiry",
"password problem", "can't locate document")

We want to graphically represent these in charts, but some of the queries
have more than six categories or columns, so we can't use the tool from
within Access.

The solution is to link Excel worksheets with charts to dynamic queries in
the Access database.

This worked fine for the categories (18 of them). When a new month has
elapsed, the charts are automatically expanding. Fine.

The problem comes when working with sub-categories. Some months there are
no feedbacks for a particular family of comments, so on the crosstab queries
in Access, it simply doesn't create the row. Same if a particular colum has
no entries so far - the column disappears.

We want our charts to be consistent, so we want all columns and all rows to
show up in charts, even if the chart shows a drop to zero. To make sure the
Access crosstab query reflects this, I use the "Nz" function to fill with
zeros when a null value exists, and the queries look great in Access.

When I go to grab the "external data" in Excel, I get an error for
"unrecognized function 'Nz'" and can't creat the link to the Access data. It
does if there is either the Nz call in the actual query, or if it's in any of
the queries feeding into the query.

I don't want my end user to have to manually change the chart definitions,
so cutting and pasting is out.

Does anyone know how to work around this problem, and does anyone fathom why
Excel wouldn't recognize a function from a "sister" application?
Frustrating, but I'm hoping my frustration is born from ignorance. Any help
is appreciated.

T

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Querying Access for QTD and YTD Sales totals Marcotte A Excel Worksheet Functions 0 January 16th 07 10:54 PM
QUERYING ACCESS Drew Excel Discussion (Misc queries) 3 July 13th 05 07:25 AM
Querying data from Access Steve J Excel Worksheet Functions 0 June 14th 05 10:16 AM
Querying Data from Access Stefan Excel Discussion (Misc queries) 2 June 2nd 05 07:10 PM
Querying Access Database Edgar Thoemmes Excel Worksheet Functions 1 December 15th 04 01:58 PM


All times are GMT +1. The time now is 04:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"