Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Phone Number field not showing Post Reply Post New Topic
Author Message
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Topic: Phone Number field not showing
    Posted: 02 Sep 2015 at 10:33am
Help!

I have a Phone number field that consist of HO, H2, M1, M2, WO, and W2 as the type of Phone.


HO and H2 = Home Number 1 and 2
M1 and M2 = Mobile 1 and 2
WO and W2 = Work 1 and 2

I have pulled in the Home phone in the Detail section but when I put in Mobile phone using the formula

If {Address.PhoneType} = "M1" then
if {Address.PhoneArea} <> 0 then
(ToText({Address.PhoneArea}, "###"))&"-"&(ToText({Address.PhoneExchange}, "###"))&"-"&(ToText({Address.PhoneLast4}, "0000"))

It have duplication for example

Name       Home Phone          CellPhone
ABC        222-333-4444
ABC        222-333-4444
ABC        222-333-4444
ABC        222-333-4444
ABC        222-333-4444       555-666-7777
ABC        222-333-4444

I know that the reason it showed up that way is because the 555-666-7777 is the M1 that I wanted. How can I just show that row where ABC have HOme and Mobile only?

Thanks!
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 03 Sep 2015 at 5:45am
Group by Name and put your data in the group footer section instead of the details section. That way you'll get one row per name.

-Dell
IP IP Logged
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Posted: 03 Sep 2015 at 8:01am
I actually did it that way but then it will only show me 1 result instead.

For example:

Name            Home             CellPhone    Appt
Big Head      123-456-7890    323-528-7888 9/3/2015 1pm


It should show like this

Name            Home             CellPhone    Appt
Big Head      123-456-7890    323-528-7888 9/3/2015 1pm
Big Head      123-456-7890    323-528-7888 9/3/2015 2pm


That's why i put that in the Detail section. Any ideas?
IP IP Logged
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Posted: 03 Sep 2015 at 8:03am
Sorry I forgot to mention that when I use the Group Footer I put in the Summary Max({@Cellphone})
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 03 Sep 2015 at 8:25am
Add another group on appointment date and move the fields into that group footer.

-Dell
IP IP Logged
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Posted: 03 Sep 2015 at 8:30am
Let me try that and will get back to you.Thanks!
IP IP Logged
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Posted: 08 Sep 2015 at 6:34am
That fixed it! Thanks!!!!
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.031 seconds.