Re: Age Analysis - SQL Help
- From: prakashwadhwani@xxxxxxxxx
- Date: Sun, 19 Apr 2009 00:05:21 -0700 (PDT)
On Apr 18, 5:01 pm, Bob Quintal <rquin...@xxxxxxxxxxxxx> wrote:
prakashwadhw...@xxxxxxxxx wrote innews:f3f5cad9-cf25-4dcc-978a-163f561cab2c@xxxxxxxxxxxxxxxxxxxxxxxxxxx
:
I'm trying to generate an Age Analysis Report where the foll
SQL statement will executed be in a loop for each customer.
I was always under the impression that the "ValueIfNull" i.e. 2nd
argument of the NZ function was optional and so far it has worked
for me. However, if you feel I should change it and compulsorily
include the 2nd argument, then I'll go ahead and do so. I'd really
appreciate an explanation as to why though.
The reason is that Access makes a "best guess" as to the value to be
returned, either 0 for a numeric or "" (empty string) for all other
types. Sometimes it guesses wrong.
Also, having the default value explicitly stated makes your intentions
clear to a future maintainer of the database.
--
Bob Quintal
PA is y I've altered my email address.
Thanks Bob !!! This really puts it in perspective. As the age-old
adage goes ... Better safe than sorry !!
I've finally got the module ready but it's running a bit slowly.
Should I start another thread for it or post the code here and
continue with it ?
Best Rgds,
Prakash.
.
- Follow-Ups:
- Re: Age Analysis - SQL Help
- From: Bob Quintal
- Re: Age Analysis - SQL Help
- References:
- Age Analysis - SQL Help
- From: prakashwadhwani
- Re: Age Analysis - SQL Help
- From: Salad
- Re: Age Analysis - SQL Help
- From: prakashwadhwani
- Re: Age Analysis - SQL Help
- From: Salad
- Re: Age Analysis - SQL Help
- From: prakashwadhwani
- Re: Age Analysis - SQL Help
- From: Salad
- Re: Age Analysis - SQL Help
- From: prakashwadhwani
- Re: Age Analysis - SQL Help
- From: Bob Quintal
- Age Analysis - SQL Help
- Prev by Date: Re: MSAccess to Web App
- Next by Date: Modules not Known
- Previous by thread: Re: Age Analysis - SQL Help
- Next by thread: Re: Age Analysis - SQL Help
- Index(es):
Relevant Pages
|