PC Review


Reply
Thread Tools Rate Thread

How do I set SET CONCAT_NULL_YIELDS_NULL OFF in MS Access?

 
 
=?Utf-8?B?QW1lZXQ=?=
Guest
Posts: n/a
 
      21st Apr 2006
Please someone help me with this.
 
Reply With Quote
 
 
 
 
Wayne Morgan
Guest
Posts: n/a
 
      21st Apr 2006
Just guessing since you don't really explain what you're wanting.

Try concatenating using the Nz() function around the possible Null values.

--
Wayne Morgan
MS Access MVP


"Ameet" <(E-Mail Removed)> wrote in message
news:06355A29-ECDC-411A-84C6-(E-Mail Removed)...
> Please someone help me with this.



 
Reply With Quote
 
=?Utf-8?B?QW1lZXQ=?=
Guest
Posts: n/a
 
      21st Apr 2006
Hi Wayne

Thanks for your quick reply.

you guessed it right. I am concating two table field and some of the fields
are blank and I am getting blank string as a concat result.

I am going to try the solution you suggested here.

Once again.

Thanks for your help

Regards

Amit

"Wayne Morgan" wrote:

> Just guessing since you don't really explain what you're wanting.
>
> Try concatenating using the Nz() function around the possible Null values.
>
> --
> Wayne Morgan
> MS Access MVP
>
>
> "Ameet" <(E-Mail Removed)> wrote in message
> news:06355A29-ECDC-411A-84C6-(E-Mail Removed)...
> > Please someone help me with this.

>
>
>

 
Reply With Quote
 
Brendan Reynolds
Guest
Posts: n/a
 
      21st Apr 2006

To the best of my knowledge, the JET database engine does not have a direct
equivalent of this option. There are, however, various other ways to deal
with possible Null values in JET queries. For example, only the first SELECT
statement in the query below returns a Null value. Note that the NZ()
function is an Access function, so that example will work only when the
query is executed in Microsoft Access. The other methods will work when the
query is executed outside of Microsoft Access.

SELECT Null + TestVal FROM tblTest
WHERE TestID = 24
UNION SELECT Null & TestVal FROM tblTest
WHERE TestID = 25
UNION SELECT NZ(Null, 0) + TestVal FROM tblTest
WHERE TestID = 26
UNION SELECT IIf(Null IS NULL, 0, 1) + TestVal FROM tblTest
WHERE TestID = 27

--
Brendan Reynolds
Access MVP

"Ameet" <(E-Mail Removed)> wrote in message
news:06355A29-ECDC-411A-84C6-(E-Mail Removed)...
> Please someone help me with this.



 
Reply With Quote
 
Wayne Morgan
Guest
Posts: n/a
 
      21st Apr 2006
Another thing to consider. If you're concatenating using "+", this is
treated as a mathematical operation. Nulls propagate through equations. If
you concatenate using "&" instead, that alone may solve the problem.

Example:
"This" + Null = Null
"This" & Null = "This"

--
Wayne Morgan
MS Access MVP


"Ameet" <(E-Mail Removed)> wrote in message
news:073FC9BE-AA5C-4833-ABD1-(E-Mail Removed)...
> Hi Wayne
>
> Thanks for your quick reply.
>
> you guessed it right. I am concating two table field and some of the
> fields
> are blank and I am getting blank string as a concat result.



 
Reply With Quote
 
=?Utf-8?B?QW1lZXQ=?=
Guest
Posts: n/a
 
      21st Apr 2006
Hi Brendan

Thanks for your update. This definately will be helpful.

Best Regards

Amit

"Brendan Reynolds" wrote:

>
> To the best of my knowledge, the JET database engine does not have a direct
> equivalent of this option. There are, however, various other ways to deal
> with possible Null values in JET queries. For example, only the first SELECT
> statement in the query below returns a Null value. Note that the NZ()
> function is an Access function, so that example will work only when the
> query is executed in Microsoft Access. The other methods will work when the
> query is executed outside of Microsoft Access.
>
> SELECT Null + TestVal FROM tblTest
> WHERE TestID = 24
> UNION SELECT Null & TestVal FROM tblTest
> WHERE TestID = 25
> UNION SELECT NZ(Null, 0) + TestVal FROM tblTest
> WHERE TestID = 26
> UNION SELECT IIf(Null IS NULL, 0, 1) + TestVal FROM tblTest
> WHERE TestID = 27
>
> --
> Brendan Reynolds
> Access MVP
>
> "Ameet" <(E-Mail Removed)> wrote in message
> news:06355A29-ECDC-411A-84C6-(E-Mail Removed)...
> > Please someone help me with this.

>
>
>

 
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
sql server setting concat_null_yields_null touf Microsoft ADO .NET 2 14th Nov 2007 12:19 PM
Saving Access 2007 database in Access 2003 format fails in Access =?Utf-8?B?U3Bpcm8=?= Microsoft Access External Data 0 13th Aug 2006 08:37 AM
Automate Saving Access 2003 to Access 2000 and Access 97 =?Utf-8?B?Q2hlcnls?= Microsoft Access VBA Modules 10 1st Oct 2005 08:20 AM
Access "showing images on first page only of very wide Access report. Windows XP, Access XP Jack Microsoft Access Reports 4 18th Nov 2003 03:01 PM
Re: Allowing users (w/o MS Access) to access an Access 2000 database John Vinson Microsoft Access 0 29th Sep 2003 07:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:44 PM.