Posts Tagged ‘Queries’

Formatting Access Queries to the Thousands Place

October 24th, 2011

In an Email last week, Christina asks:

“Do you know of an easy way to show Access query results in thousands?
Thanks DataPig.You are the like that black bird on Angry Birds – the bomb.”

Ok….so I added that last sentence. But Christina did ask a pretty good question.

.

Here’s how you can format Access query fields so that they show as thousands.

.

You first start with a working query. As you can see, this query shows revenue by market with an indication of how much of that revenue comes from Internet Sales. You’ll notice that the revenue columns inundate you with lots of numbers. That is to say, the revenue columns are difficult to read. Showing these columns in thousands would help readability.
» More: Formatting Access Queries to the Thousands Place

Changing Sort Order of Access Crosstab Headings

February 14th, 2011

By default, Access Crosstab queries sort their column headings in alphabetical order. This is becomes a real drag when you’re struggling to show months in month order instead of alphabetical order.

.

This screenshot shows the mess that comes from running a Crosstab with month columns. According to Access, April is the first month of the year.
» More: Changing Sort Order of Access Crosstab Headings

Creating Access UDFs that Accept Arguments

November 4th, 2010

This week, I showed you how to Create and Use your own Access User Defined Functions (UDFs). Today, I’d like to take that one step further and show you how to create an Access UDF that accepts arguments.

  » More: Creating Access UDFs that Accept Arguments

Creating and Using User Defined Functions in Access

November 2nd, 2010

We haven’t had an Access post in a while, so today, I’ll show Access some love.

We all know that we can create our own User Defined Functions in Excel. Well, did you know you can also create and use your own User Defined Functions in Access?

  » More: Creating and Using User Defined Functions in Access

Using Dashboard Graphics in Access

January 7th, 2010

Let’s face it, Access isn’t typically a tool you would think of when considering a dashboarding platform. The reporting tools in Access, as slick as they are, don’t lend themselves to visualizations.

That is, Access doesn’t offer a whole lot in the way of dashboarding graphics. Sure, it has charts and conditional formatting, but nothing like Excel.

 

In this post, I’ll show you a hack to spruce up your Access reporting by using your own dashboarding graphics.

  » More: Using Dashboard Graphics in Access

The Benefits of a Good Technical Editor

December 4th, 2009

I’m in the process of writing my Pulitzer worthy book “An Excel Analyst’s guide to Access”.  During the writing process, chapters get reviewed by a team of editors – one of which is a Technical Editor. 

The Technical Editor on this book is Dick Kusleika (Daily Dose of Excel).  Kusleika is one of the better technical editors I’ve worked with.  I think his accountant’s detail-oriented brain lends itself nicely to tech editing. 

Quick  Joke:  Did you hear about extroverted accountant?  He looks down at your shoes. 

.

During his editing, Kusleika pointed out that that the serial dates in Access actually start at December 31, 1899 (not January 1, 1900 like in Excel). 

» More: The Benefits of a Good Technical Editor

Easily Move Access Query Results to Excel

November 19th, 2009

Just the other day, I saw someone run an Access Query in Office 2003. Then he selected Office Tools ->Analyze with Excel.  This essentially sends the results of the Access query to Excel.

.

This if fine and dandy, but there is a slightly easier way to get the results of an Access query to Excel.

. » More: Easily Move Access Query Results to Excel

Documenting Access Queries in Excel

October 26th, 2009

Clients usually have this pesky need to have everything documented. As a generally lazy person, this offends my lackadaisical attitude. Nevertheless, I typically oblige, given the fact that I want them to take over the work at some point.

 

Over the years, I’ve rolled my own documentation tools to help in this endeavor. Today, I want to share a small procedure I use to document Access queries in Excel.

  » More: Documenting Access Queries in Excel

Getting to Workdays in Access

October 22nd, 2009

Suppose you’ve been asked to provide some reporting in Access, but only for those dates that are company workdays (workdays are defined as days that are not weekends or holidays). In Excel, you have the NETWORKDAYS function to help you out. But in Access, you’re on your own. There is no such function in Access.

 

Well, it’s your lucky day.  Today, I’ll show you an easy way to query only workdays in Access.

  » More: Getting to Workdays in Access

Running an Access Parameter Query from Excel

October 19th, 2009

An Access parameter query is a kind of interactive query that prompts you for criteria before the query is run. Parameter queries are useful when you need to ask the query different questions using different criteria each time you run it.

Now we all know you can pull data from Access into Excel using MS Query. The problem is that MS Query doesn’t let you pull in Parameter queries. There may be a technical reason for this, but I like to think it’s just Microsoft’s way of keeping things interesting. After all, technical roadblocks are the spice of life.
If you’ve had enough spice, I’ll show you a VBA workaround that will enable you to run an Access parameter query from Excel.

  » More: Running an Access Parameter Query from Excel