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

missing text while concatenating?

Status
Not open for further replies.

rienk

Technical User
Apr 2, 2003
9
US
Hi all,
I've got this unbound textfield where I concatenate the following:

=IIf([vector_map]<>&quot;&quot; Or [sequence_info]<>&quot;&quot;,&quot;&quot;+Chr(13)+Chr(10) & &quot;Related files:&quot;,&quot;&quot;) & IIf([vector_map]<>&quot;&quot;,&quot;&quot;+Chr(13)+Chr(10) & &quot;Vector map: &quot; & [vector_map],&quot;&quot;) & IIf([sequence_info]<>&quot;&quot;,&quot;&quot;+Chr(13)+Chr(10) & &quot;Sequence info: &quot; & [sequence_info],&quot;&quot;)

Ok, the problem is that it shows only one of the two vars at a time with vector_map in favor... what is wrong? I checked it a bah-zillion times now, but I guess I need another pair of eyes, too.
Or could it be that there's a limit in the no. of concatenated text-strings? I've already got two others with a lot of IIf functions and all...
 
Rienk

Why are you putting &quot;&quot; before each CHR set? Maybe that's screwing it up?

Jim

&quot;Get it right the first time, that's the main thing...&quot; [wavey]
 
Rienk

Better yet, just replace Chr(13) + Chr(10) with vbCrLf (the Visual Basic equivalent).

Jim

&quot;Get it right the first time, that's the main thing...&quot; [wavey]
 
Access keeps messing up vbCrLf... keeps turning it into a field code, whatsoever...
 
Try this:
Code:
=IIf([vector_map] Is Not Null Or [sequence_info] Is Not Null, vbCrLf & &quot;Related files:&quot;,&quot;&quot;) & IIf([vector_map] Is Not Null, vbCrLf & &quot;Vector map: &quot; & [vector_map],&quot;&quot;) & IIf([sequence_info]Is Not Null, vbCrLf & &quot;Sequence info: &quot; & [sequence_info],&quot;&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top