Going slightly bonkers

Malcy

Registered User.
Local time
Today, 12:45
Joined
Mar 25, 2003
Messages
584
Hi
I am trying to format a report so that a text box's contents sit "nicely".
I am using
Code:
=IIf(IsNull([txt2]),"",[DoseDescr2] & " vbCrLf   " & [strDoseHow])
This puts entry nicely on the two lines but the text also shows the letters vbCrLf in the textbox within the report. I thought they would be hidden - and need them to be hidden!
Am I missing something in the expression
Any thoughts? Thanks

Malcy
 
=IIf(IsNull([txt2]),"",[DoseDescr2] & vbCrLf & [strDoseHow])
 
Hi Wazz
Thanks but if I do that it puts the vbCrLf in square brackets and wants to treat it as a field.
When I open the report it looks for the paprameter value for vbCrLf
So, not quite there yet!
Best wishes
 
Not sure you can use a VBA constant in an expression. I'd try using Chr(13) & Chr(10)
 

Users who are viewing this thread

Back
Top Bottom