Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Joining fields of different data types

Status
Not open for further replies.

harrietohs

IS-IT--Management
Apr 26, 2002
99
CA
I have crystal ver 8.5.
I want to create a unique field by joining an Activity Number, which looks like A03-004567, to a Sequence Number, which looks like 01,02,03, etc. (In other words, each distinct Activity can have multiple sequences.)

I tried this formula:
{activity.activity_no}+TOTEXT({activity.activity_seq})

but it returns all the sequence numbers as 00.

Can someone help with correct formula?

Thanks
 
hi
create a group on your activity number
and just insert your sequence number

or

insert a text box

and place the activity number in it and add a space and insert the suence number inside also

pgtek

 
I should have explained that my ultimate goal is to create a cross tab that does a distinct count of each set of Activity Number+ Sequence Number. So, I need to do this via a formula?
 
Are you sure you are not misinterpreting added decimals as the returned sequence number? You might want to try:

{activity.activity_no}+TOTEXT({activity.activity_seq},0,"")

You could add in a hyphen or a space between elements to clarify what's being returned.

Also, you can use "&" instead of "+" and then you do not need to convert the sequence number to text. The "&" allows you to concatenate fields of different data types without the need for conversion.

-LB

 
Mea Culpa! Yes, I was not seeing the returned data for what it really was, and I only picked up on the .00! Duh. But I am happy to have learned about using the & to work with different data types.

Thanks so much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top