PC Review


Reply
Thread Tools Rate Thread

Change null values to zero in query

 
 
=?Utf-8?B?UmF5IE1lYWQ=?=
Guest
Posts: n/a
 
      15th Jun 2005
Greetings everyone! I have a query that gets the max field length number.
If the field is null, then there is no value. How do I update the null to a
zero? Below is the code.


SELECT Max(Len([fnm])) AS FNM1, Max(Len([lnm])) AS Lnm2 FROM uppercustomer;

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      15th Jun 2005
SELECT Max(Len(Nz([fnm], ""))) AS FNM1, Max(Len(Nz([lnm], ""))) AS Lnm2 FROM
uppercustomer

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Ray Mead" <(E-Mail Removed)> wrote in message
news:42AD773C-35A4-494C-9F9A-(E-Mail Removed)...
> Greetings everyone! I have a query that gets the max field length number.
> If the field is null, then there is no value. How do I update the null to
> a
> zero? Below is the code.
>
>
> SELECT Max(Len([fnm])) AS FNM1, Max(Len([lnm])) AS Lnm2 FROM
> uppercustomer;
>



 
Reply With Quote
 
=?Utf-8?B?UmF5IE1lYWQ=?=
Guest
Posts: n/a
 
      15th Jun 2005
thanks for the helpful post, it works like a charm!!!

"Douglas J. Steele" wrote:

> SELECT Max(Len(Nz([fnm], ""))) AS FNM1, Max(Len(Nz([lnm], ""))) AS Lnm2 FROM
> uppercustomer
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
>
> "Ray Mead" <(E-Mail Removed)> wrote in message
> news:42AD773C-35A4-494C-9F9A-(E-Mail Removed)...
> > Greetings everyone! I have a query that gets the max field length number.
> > If the field is null, then there is no value. How do I update the null to
> > a
> > zero? Below is the code.
> >
> >
> > SELECT Max(Len([fnm])) AS FNM1, Max(Len([lnm])) AS Lnm2 FROM
> > uppercustomer;
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Null or No Null values in a parameter query tim Microsoft Access Getting Started 6 13th Aug 2008 10:43 PM
how do i change null values to zero in an access query =?Utf-8?B?dGhlZGVhbl9rZXZpbg==?= Microsoft Access Queries 1 14th Nov 2005 09:44 PM
Counting Null and Not Null values in one query Amy Johnson Microsoft Access Queries 6 20th Nov 2004 05:55 AM
Dealing with ' 0 ' values and NULL values in a query calculation =?Utf-8?B?amF5X2dyYWZm?= Microsoft Access 3 17th Nov 2004 06:02 PM
In Crosstab Query If Any Values Are Null I Want Sum to Be Null mcl Microsoft Access Queries 4 27th Feb 2004 06:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:50 PM.