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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenation Different data types

Status
Not open for further replies.

Hattrick16

Technical User
May 6, 2005
17
0
0
US
I am trying to create a new variable by concatenating two existing variables. The wrinkle is that they appear to be different data types.

Batch# = alphanumeric character.
Sequence = Nuneric I believe

I know the proper syntax
=Concatenation(<Batch Number> ,<sequence>)

I tries to nest a format number in the statement before the <sequence> but I still get an incorrect data type error

Am I going about this correctly and if not what is the correct syntax??



 
Hattrick,

Try =Concatenation(<Batch Number> ,FormatNumber(<sequence>,"000000")

You can only concatenate alphanumeric strings

Brian
 
Just use a + to concatenate different types.

<Batch Number> + FormatNumber(<sequence>,"000000")


Steve Krandel
Symantec
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top