Archive for the ‘Access Queries’ Category

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

Special Characters are a Pain in the Asterisk

September 7th, 2009

There’s an old saying that goes “You learn something new every day”. That’s fine, but it’s embarrassing when what you learned that day is something that you should have learned years ago.

I recently was working with Access when I ran into a situation I’ve never run into before. As I did some research, it became clear that this “problem” I was having seemed to be common knowledge.

It revolved around special characters. Since we all have things to do today, I’ll simplify the scenario to a basic example.

. » More: Special Characters are a Pain in the Asterisk

Adding Data Bars to Access Queries

September 2nd, 2009

Today, the old schedule is a bit tight, so no time for a full on post.  I’ll be recycling old some material today.  The crunchy environmentalists keep telling me that recycling is good.  So think of today’s post as Earth Day, without the…..um….earth.

.A few months back, I came up with an Access visualization trick while thinking about building dashboards in Access.

I’ve put together a video that shows you how to build data bars in an Access query.  This technique will work with Access forms and reports too.  » More: Adding Data Bars to Access Queries

Dynamically Adding Primary Keys

August 18th, 2009

For many of us, Access serves as an easy to use ETL (extract, transform, load) tool. That is, Access allows us to extract data from many sources, then reformat and cleanse that data into consolidated tables.

Many of us also automate our ETL processes with the use of macros that fire a series of queries. This typically works quite well in most cases.

There are, however, instances where our ETL process requires us to add primary keys to temporary tables in order to keep data normalized during processing.

  » More: Dynamically Adding Primary Keys