PC Review


Reply
Thread Tools Rate Thread

How do I display data formatted in a particular way?

 
 
JustinP
Guest
Posts: n/a
 
      2nd Nov 2006
The data format is like ->> a | b | c | d | e. So as an example:

Record 1 = wid | git
Record 2 = this | is | a | wid | git

I need to split this field (strX = Split(..., "|") and display each
array on a new line under a grouped header in a report.

Like this:
------------------------------------------
Record 1

wid
git
-------------------------------------------

Record 2

this
is
a
wid
git
------------------------------------------


How do I go about putting the current row in the (strX = Split(...,
"|") statement?
Is this the best way to go about this?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFtaWFuIFM=?=
Guest
Posts: n/a
 
      2nd Nov 2006
Hi JustinP,

What about something like this:

replace(FIELD, " | ", chr(13) & chr(10))

Where FIELD is the field name.

Damian.

"JustinP" wrote:

> The data format is like ->> a | b | c | d | e. So as an example:
>
> Record 1 = wid | git
> Record 2 = this | is | a | wid | git
>
> I need to split this field (strX = Split(..., "|") and display each
> array on a new line under a grouped header in a report.
>
> Like this:
> ------------------------------------------
> Record 1
>
> wid
> git
> -------------------------------------------
>
> Record 2
>
> this
> is
> a
> wid
> git
> ------------------------------------------
>
>
> How do I go about putting the current row in the (strX = Split(...,
> "|") statement?
> Is this the best way to go about this?
>
>

 
Reply With Quote
 
JustinP
Guest
Posts: n/a
 
      2nd Nov 2006
Works a treat and is simple. Thanks.

On Nov 2, 2:07 pm, Damian S <Dami...@discussions.microsoft.com> wrote:
> Hi JustinP,
>
> What about something like this:
>
> replace(FIELD, " | ", chr(13) & chr(10))
>
> Where FIELD is the field name.
>
> Damian.
>
> "JustinP" wrote:
> > The data format is like ->> a | b | c | d | e. So as an example:

>
> > Record 1 = wid | git
> > Record 2 = this | is | a | wid | git

>
> > I need to split this field (strX = Split(..., "|") and display each
> > array on a new line under a grouped header in a report.

>
> > Like this:
> > ------------------------------------------
> > Record 1

>
> > wid
> > git
> > -------------------------------------------

>
> > Record 2

>
> > this
> > is
> > a
> > wid
> > git
> > ------------------------------------------

>
> > How do I go about putting the current row in the (strX = Split(...,
> > "|") statement?
> > Is this the best way to go about this?


 
Reply With Quote
 
JustinP
Guest
Posts: n/a
 
      2nd Nov 2006
Works a treat, thanks. Just to make it a bit more difficult though what
if I have two columns of information and need the second column to go
below the first. (The problem being that the variable length of the
data may cause the text boxes to either overlap or spread too far from
each other).
------------------------------------------
Record 1

Column 1 wid
git

Column 2 some
other
thing
-------------------------------------------

Record 2

Column 1 this
is
a
wid
git

Column 2 yet
more
------------------------------------------

Any ideas?



On Nov 2, 2:07 pm, Damian S <Dami...@discussions.microsoft.com> wrote:
> Hi JustinP,
>
> What about something like this:
>
> replace(FIELD, " | ", chr(13) & chr(10))
>
> Where FIELD is the field name.
>
> Damian.
>
> "JustinP" wrote:
> > The data format is like ->> a | b | c | d | e. So as an example:

>
> > Record 1 = wid | git
> > Record 2 = this | is | a | wid | git

>
> > I need to split this field (strX = Split(..., "|") and display each
> > array on a new line under a grouped header in a report.

>
> > Like this:
> > ------------------------------------------
> > Record 1

>
> > wid
> > git
> > -------------------------------------------

>
> > Record 2

>
> > this
> > is
> > a
> > wid
> > git
> > ------------------------------------------

>
> > How do I go about putting the current row in the (strX = Split(...,
> > "|") statement?
> > Is this the best way to go about this?


 
Reply With Quote
 
=?Utf-8?B?RGFtaWFuIFM=?=
Guest
Posts: n/a
 
      2nd Nov 2006
Hi again,

Just set your report up with the grouping on the Record Number, put the
heading (Record 1 in your sample) in the group header, then put Field 1 at
normal size with Field 2 at normal size below it in the Details section.

Set the properties of Field 1 and Field 2 so that Can Grow are set to true.
Set the Properties of the Details Section so that Can Grow is set to true.

That should fix it for you.

Damian.

"JustinP" wrote:

> Works a treat, thanks. Just to make it a bit more difficult though what
> if I have two columns of information and need the second column to go
> below the first. (The problem being that the variable length of the
> data may cause the text boxes to either overlap or spread too far from
> each other).
> ------------------------------------------
> Record 1
>
> Column 1 wid
> git
>
> Column 2 some
> other
> thing
> -------------------------------------------
>
> Record 2
>
> Column 1 this
> is
> a
> wid
> git
>
> Column 2 yet
> more
> ------------------------------------------
>
> Any ideas?
>
>
>
> On Nov 2, 2:07 pm, Damian S <Dami...@discussions.microsoft.com> wrote:
> > Hi JustinP,
> >
> > What about something like this:
> >
> > replace(FIELD, " | ", chr(13) & chr(10))
> >
> > Where FIELD is the field name.
> >
> > Damian.
> >
> > "JustinP" wrote:
> > > The data format is like ->> a | b | c | d | e. So as an example:

> >
> > > Record 1 = wid | git
> > > Record 2 = this | is | a | wid | git

> >
> > > I need to split this field (strX = Split(..., "|") and display each
> > > array on a new line under a grouped header in a report.

> >
> > > Like this:
> > > ------------------------------------------
> > > Record 1

> >
> > > wid
> > > git
> > > -------------------------------------------

> >
> > > Record 2

> >
> > > this
> > > is
> > > a
> > > wid
> > > git
> > > ------------------------------------------

> >
> > > How do I go about putting the current row in the (strX = Split(...,
> > > "|") statement?
> > > Is this the best way to go about this?

>
>

 
Reply With Quote
 
JustinP
Guest
Posts: n/a
 
      2nd Nov 2006
Nailed it, thanks bud.

On Nov 2, 2:35 pm, Damian S <Dami...@discussions.microsoft.com> wrote:
> Hi again,
>
> Just set your report up with the grouping on the Record Number, put the
> heading (Record 1 in your sample) in the group header, then put Field 1 at
> normal size with Field 2 at normal size below it in the Details section.
>
> Set the properties of Field 1 and Field 2 so that Can Grow are set to true.
> Set the Properties of the Details Section so that Can Grow is set to true.
>
> That should fix it for you.
>
> Damian.
>
> "JustinP" wrote:
> > Works a treat, thanks. Just to make it a bit more difficult though what
> > if I have two columns of information and need the second column to go
> > below the first. (The problem being that the variable length of the
> > data may cause the text boxes to either overlap or spread too far from
> > each other).
> > ------------------------------------------
> > Record 1

>
> > Column 1 wid
> > git

>
> > Column 2 some
> > other
> > thing
> > -------------------------------------------

>
> > Record 2

>
> > Column 1 this
> > is
> > a
> > wid
> > git

>
> > Column 2 yet
> > more
> > ------------------------------------------

>
> > Any ideas?

>
> > On Nov 2, 2:07 pm, Damian S <Dami...@discussions.microsoft.com> wrote:
> > > Hi JustinP,

>
> > > What about something like this:

>
> > > replace(FIELD, " | ", chr(13) & chr(10))

>
> > > Where FIELD is the field name.

>
> > > Damian.

>
> > > "JustinP" wrote:
> > > > The data format is like ->> a | b | c | d | e. So as an example:

>
> > > > Record 1 = wid | git
> > > > Record 2 = this | is | a | wid | git

>
> > > > I need to split this field (strX = Split(..., "|") and display each
> > > > array on a new line under a grouped header in a report.

>
> > > > Like this:
> > > > ------------------------------------------
> > > > Record 1

>
> > > > wid
> > > > git
> > > > -------------------------------------------

>
> > > > Record 2

>
> > > > this
> > > > is
> > > > a
> > > > wid
> > > > git
> > > > ------------------------------------------

>
> > > > How do I go about putting the current row in the (strX = Split(...,
> > > > "|") statement?
> > > > Is this the best way to go about 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
display cell value in msgbox formatted as % rgarber50 Microsoft Excel Misc 5 10th Jul 2005 03:27 PM
How To Display Formatted Text with ASP.NET ? kbolster20@yahoo.com Microsoft ASP .NET 2 28th Jan 2005 08:13 PM
CSV formatted numbers display incorrectly sue Microsoft Excel Misc 1 17th May 2004 05:53 PM
Re: display rtf formatted text on a form François Uldry Microsoft Access Form Coding 0 14th Feb 2004 01:49 AM
using Crystal Reports to display data in my dataset correctly (display the data I selected instead of all the data in table) JK Microsoft C# .NET 1 6th Sep 2003 10:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:39 PM.