Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Select previous Records Post Reply Post New Topic
Author Message
AdamField
Groupie
Groupie


Joined: 04 Jun 2009
Online Status: Offline
Posts: 88
Quote AdamField Replybullet Topic: Select previous Records
    Posted: 03 Mar 2011 at 11:47pm
Hey all,

I have a table filled with all our sales

Build like this

Invoice  :  Article  : Discription : amount : Price : .....
1              30210         hard drive    1           10
1              20434         floppy           2           35
1              10543         cdrom           1           5
2              30000         cpu              10          100
2              36587         vga              1             5
2              60000         Assemblage   1           60

Now i want to make a list of all the invoices that have article 6000

But i don't want to see only the record with article 6000 i also want to see all the other articles on that invoice.

I guess i need to work with 2 detail lines or with a variable
Any idee's ?

Greetings Adam
IP IP Logged
FrnhtGLI
Senior Member
Senior Member
Avatar

Joined: 22 May 2009
Online Status: Offline
Posts: 347
Quote FrnhtGLI Replybullet Posted: 04 Mar 2011 at 2:02am
Definitely work with a variable. I have had similar situations. I create 1 variable for each column. The variable looks something like this:
 
whileprintingrecords;
 
global stringvar sArticle:=sArticle & (if {table.article}='60000'
     then {table.article} & chr(13)
          else "";
 
This will give you a nice column to work with. You can create a display formula for the variable, place the formula in the section you want it, and set it to Can Grow. Then place all the other column varaibles next to it.


Edited by FrnhtGLI - 04 Mar 2011 at 2:03am
|< /\ '][' ( )
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.066 seconds.