PC Review


Reply
Thread Tools Rate Thread

null values in reports

 
 
Joanne
Guest
Posts: n/a
 
      18th Sep 2003
I am building a report that contains several consecutive
fields, concatanated and separated by semicolons. Does
anyone know how to set up the report so that the
semicolons are not inserted if there is a null value in
previous field.
Any help appreciated!
Joanne
 
Reply With Quote
 
 
 
 
Ken Snell
Guest
Posts: n/a
 
      18th Sep 2003
Use + as the concatenation operator instead of & between the field and the
semicolon:

(Field1 + ";") & (Field2 + ";") & (Field3 + ";") etc.

The + propogates the Null and "cancels" out the other character.

--
Ken Snell
<MS ACCESS MVP>

"Joanne" <(E-Mail Removed)> wrote in message
news:070301c37d8b$b7b82290$(E-Mail Removed)...
> I am building a report that contains several consecutive
> fields, concatanated and separated by semicolons. Does
> anyone know how to set up the report so that the
> semicolons are not inserted if there is a null value in
> previous field.
> Any help appreciated!
> Joanne



 
Reply With Quote
 
 
 
 
HSalim
Guest
Posts: n/a
 
      18th Sep 2003
Ken is right about null propagation, but you would use
(Field1 ) & ( ";" + Field2 ) & ( ";" + Field3 )

HS

"Ken Snell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Use + as the concatenation operator instead of & between the field and the
> semicolon:
>
> (Field1 + ";") & (Field2 + ";") & (Field3 + ";") etc.
>
> The + propogates the Null and "cancels" out the other character.
>
> --
> Ken Snell
> <MS ACCESS MVP>
>
> "Joanne" <(E-Mail Removed)> wrote in message
> news:070301c37d8b$b7b82290$(E-Mail Removed)...
> > I am building a report that contains several consecutive
> > fields, concatanated and separated by semicolons. Does
> > anyone know how to set up the report so that the
> > semicolons are not inserted if there is a null value in
> > previous field.
> > Any help appreciated!
> > Joanne

>
>



 
Reply With Quote
 
Ken Snell
Guest
Posts: n/a
 
      18th Sep 2003
Assuming that Field1 is always to be printed, regardless of its value, then
yes.

--
Ken Snell
<MS ACCESS MVP>

"HSalim" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Ken is right about null propagation, but you would use
> (Field1 ) & ( ";" + Field2 ) & ( ";" + Field3 )
>
> HS
>
> "Ken Snell" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Use + as the concatenation operator instead of & between the field and

the
> > semicolon:
> >
> > (Field1 + ";") & (Field2 + ";") & (Field3 + ";") etc.
> >
> > The + propogates the Null and "cancels" out the other character.
> >
> > --
> > Ken Snell
> > <MS ACCESS MVP>
> >
> > "Joanne" <(E-Mail Removed)> wrote in message
> > news:070301c37d8b$b7b82290$(E-Mail Removed)...
> > > I am building a report that contains several consecutive
> > > fields, concatanated and separated by semicolons. Does
> > > anyone know how to set up the report so that the
> > > semicolons are not inserted if there is a null value in
> > > previous field.
> > > Any help appreciated!
> > > Joanne

> >
> >

>
>



 
Reply With Quote
 
HSalim
Guest
Posts: n/a
 
      19th Sep 2003
No, actually, you are right.
I had mis read the requirement. The poster wanted to vaporize the
semi-colon if the field preceding it was null

HS


"Ken Snell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Assuming that Field1 is always to be printed, regardless of its value,

then
> yes.
>
> --
> Ken Snell
> <MS ACCESS MVP>
>
> "HSalim" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Ken is right about null propagation, but you would use
> > (Field1 ) & ( ";" + Field2 ) & ( ";" + Field3 )
> >
> > HS
> >
> > "Ken Snell" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Use + as the concatenation operator instead of & between the field and

> the
> > > semicolon:
> > >
> > > (Field1 + ";") & (Field2 + ";") & (Field3 + ";") etc.
> > >
> > > The + propogates the Null and "cancels" out the other character.
> > >
> > > --
> > > Ken Snell
> > > <MS ACCESS MVP>
> > >
> > > "Joanne" <(E-Mail Removed)> wrote in message
> > > news:070301c37d8b$b7b82290$(E-Mail Removed)...
> > > > I am building a report that contains several consecutive
> > > > fields, concatanated and separated by semicolons. Does
> > > > anyone know how to set up the report so that the
> > > > semicolons are not inserted if there is a null value in
> > > > previous field.
> > > > Any help appreciated!
> > > > Joanne
> > >
> > >

> >
> >

>
>



 
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
Display other than "#null!" for divison of Null values =?Utf-8?B?S291IFZhbmc=?= Microsoft Access Reports 5 10th Jan 2006 06:06 PM
Error msg not accepting null value when there are no null values =?Utf-8?B?c3RldmVtYW4yMDAw?= Microsoft Access 2 13th Jul 2005 12:32 PM
Counting Null and Not Null values in one query Amy Johnson Microsoft Access Queries 6 20th Nov 2004 06:55 AM
In Crosstab Query If Any Values Are Null I Want Sum to Be Null mcl Microsoft Access Queries 4 27th Feb 2004 07:26 PM
Null result when combining null field with non-null field in ADP View Lauren Quantrell Microsoft Access Form Coding 8 17th Nov 2003 03:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:29 PM.