Avatar of Vijay Kamble
Vijay Kamble
Flag for India asked on

How can i display multiple records of same table in crystal report?

Hi,
I want to create a 1 crystal report which shows the Member detail form member section i have to display member records and in spouse section i want to display spouse details and also same for member dependents.i have all details in one table but there are different record for member,spouse and dependents. (e.g for member code OM0582 in database OM0582  01 for spouse OM0582  02 , if member have 3 dependants then OM0582  03,OM0582  04,OM0582  04). i am attaching screen shot of table records of 1 member. i want to display this records in one member form, how can i do this?
error.jpg
Crystal Reports

Avatar of undefined
Last Comment
Vijay Kamble

8/22/2022 - Mon
Mike McCracken

I think you attached the wrong screen shot

Can you select all related records based on the member code OM0582 or do the dependents have their own record code?

Can you select using like?

{MemberCode} Like "OM0582*"

mlmcc
Vijay Kamble

ASKER
yes you are right I attached wrong screen shot. dependants have there own member code like spouse OM0582 02 same like dependants..
Mike McCracken

How do you select records?

Did you try the LIKE method?

mlmcc
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Vijay Kamble

ASKER
I show above record for example purpose i will select all records from table.i have separate record for member spouse and dependants. first six digit is common for member spouse and dependants and from right 2 digits are different for member, spouse and dependants. e.g. if Mr x have member code om0582 01 his spouse have om0582 02 and if he have 3 child's then dependants codes are om0582 03,om0582 04 and om0582 05.This all records are in same table. so how can display in creating in single member form reports?
Mike McCracken

Are u able to select all the records?

Then just put the fields on the report in the details section

mlmcc
Raghavendra Hullur

Hi,
Can you show us with a screenshot like how you want to display the details related to a single member code? I mean if you want to display the main member, then followed by spouse abd children in a specific order, then we can create a formula by selecting first 6 letters of member code and group by that to display all related info one below other.
In case, your requirement is different, then, if you provide a screenshot of how you need to display, we can think on that.
Provide a rough screenshot or in an excel sheet how you want the details to be displayed.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Vijay Kamble

ASKER
i am attaching my full format of member form report. i want to pass from member and to member no parameter in report for selected members. i have member photo in server area and name of file stored in table (field name is strcustomercode) . i am also attaching xlsx file some data for single member for your reference.
Member-Detail-Form-GURU.xls
Data-Structure.xlsx
ASKER CERTIFIED SOLUTION
Mike McCracken

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Vijay Kamble

ASKER
Mr.mlcc I am new in cr. please give me a example or any tutorial for my reference.
Vijay Kamble

ASKER
Mr mlcc all data in form is in single view. i have to pass parameter main report? On the basis of main report parameter how can display the subreport?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
SOLUTION
James0628

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Mike McCracken

Is there a way to determine the spouse?
Is it always the 02 dependent?

mlmcc
Vijay Kamble

ASKER
yes. 02 is fixed for spouse 01 for member.