• Home
  • About
  • Favourites
  • Login
Blue Orange Green Pink Purple

Microsoft Access 2003

Posted in Musings, Reviews, Technology, Word of the Day. on Thursday, January 21st, 2010 by Gareth Tags: 2003, access, function, iif, immediate if, microsoft, replace, values, windows
Jan 21

I may have mentioned that my job revolves, in part, around producing queries in Access. There are all sorts of terms that get applied to what I do. Monitoring, Reporting, Data Management, Database Administration, Information Systems, Management Information. Many of these terms mean different things depending on who you are speaking with. So I wouldn’t worry about them.

Instead let’s take a look at some of the functions I have been playing with lately to save my time in processing data for reports.

Replace:

This neat little gem allows you to edit the values in a column. For example, if your database uses some values with context values included then you can remove the context element on the fly. For example, your database includes customer type in front of each order reference number, like this ‘Bus – 657483′ for business users. You put the context values there for a good reason but now you just want the order numbers. What do you do? You use a Replace function, that’s what you do. Something like this,

Expr1:Replace([warehouse.orders],”Bus – “,”")

The replace function includes some error handling so you might want to nest this within an IIF to handle exceptions. For instance, if your report includes some null values there will return an error value. I do it this way, it may not be the best way, but hey, we live to learn.

Expr2:IIF([warehouse.orders] is null,”",Replace([warehouse.orders],”Bus – “,”"))

Short, sweet, and simple. I think that’s enough for now.

Word of the day: Demotic
- adjective
1 – of or pertaining to the ordinary, everyday, current form of a language; vernacular: a poet with a keen ear for demotic rhythms.
2 – of or pertaining to the common people; popular.
3 – of, pertaining to, or noting the simplified form of hieratic writing used in ancient Egypt between 700 b.c. and a.d. 500.

Comments are closed.

Big Hungry Giant

  • Welcome
    Welcome to Big Hungry Giant! At school I was generally known as the BFG, an amusing reference to Roald Dahl. It stands for Big Friendly Giant. Later at college and university this became just Big G. It's a reasonably accurate description even today and so I thought it was appropriate as the name of my blog. I talk about many things here, but rest assured, food, family and friends will always be among them.
  •  
    January 2010
    M T W T F S S
    « Dec   Feb »
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
  • Amigos y Amigas
    • Cait and Brig
    • Nathaniel and Alex
    • Sarah and Anthony
    • Velvet bench
  • Links
    • Blog Catalog
    • Cupcake Blog
    • Family Gallery
    • Greenwich Phantom
    • Miniature Cake Maker
    • Professional Photographer
  • iLast.fm
    • Jet - Get Born
    • The Strokes - Is This It
    • Editors - The Back Room
    • Interpol - Our Love To Admire
    • Kasabian - Empire
    • Razorlight - Razorlight
  • Categories
    • 2012 Olympics
    • Amigos y Amigas
    • Blogging
    • FaceBook
    • Family
    • Feet
    • Food
    • FPS
    • Goal Setting
    • Good books
    • hype
    • Movies
    • Musings
    • New Year
    • PC Games
    • Reviews
    • Sport
    • streaming video
    • Technology
    • Uncategorized
    • War on Terror
    • WiFi
    • Word of the Day
    • YouTube
  • Tags
    3d 2012 2012 Olympics autotuninglevel avatar blog book review building site change China chinese chinese food chop sticks commentary construction site easy eating out Family Food fsa fun funny getting started gossip Humming hype james cameron leisure literature london 2012 london olympics microsoft mistakes movie Musicals professional quick review series slow internet Titles TV vista windows wireless
  • Archives
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • June 2009
  • Search






  • Home
  • About
  • Favourites
  • Login

© Copyright Big Hungry Giant. All rights reserved.
Wordpress Themes by DreamTemplate

Back to Top