M
Mike Revis
Hi Group
Access 2000 Win XP pro
I have an unbound text box (txtDescription) on a report that I use the
following code in.
All fields are text type.
In the VB editor I have
txtDescription = IIf(Len(Trim([UNorIDNumber]) & "") = 0, "",
[UNorIDNumber] & ", ") & _
IIf(Len(Trim([PackingGroup]) & "") = 0, "" & vbCrLf, [PackingGroup] &
vbCrLf)
This works perfectly. To perfectly.
As written it returns UN1111, III
If there is no PackingGroup it returns UN1111,
As expected.
Is there a way that if there is no PackingGroup the apostrophe can be
suppressed?
If no PackingGroup the desired result would be UN1111
As always any thoughts, comments or suggestions are welcome.
Best regards,
Mike
Access 2000 Win XP pro
I have an unbound text box (txtDescription) on a report that I use the
following code in.
All fields are text type.
In the VB editor I have
txtDescription = IIf(Len(Trim([UNorIDNumber]) & "") = 0, "",
[UNorIDNumber] & ", ") & _
IIf(Len(Trim([PackingGroup]) & "") = 0, "" & vbCrLf, [PackingGroup] &
vbCrLf)
This works perfectly. To perfectly.
As written it returns UN1111, III
If there is no PackingGroup it returns UN1111,
As expected.
Is there a way that if there is no PackingGroup the apostrophe can be
suppressed?
If no PackingGroup the desired result would be UN1111
As always any thoughts, comments or suggestions are welcome.
Best regards,
Mike