IIf and Trim

C

Chi

Hi,

I use IIf([ReserveDate] Is Null,Null,([ReserveDate] & " & " &
[ReserveDateTo])) to display ReserveDate & ReserveDateTo if ReserveDate is
Null. It works fine.

However, when ReserveDate has value, it displayed with &.

Ex: 12/22/08 &.

Would you please show me how to take the “&†off?

Thanks
Chi
 
D

Duane Hookom

Try:
[ReserveDate] & IIf(IsNull([ReserveDateTo]),Null," & " & [ReserveDateTo])
 
C

Chi

Hi Duane,

It works perfectly! Thank you so much.
Chi

Duane Hookom said:
Try:
[ReserveDate] & IIf(IsNull([ReserveDateTo]),Null," & " & [ReserveDateTo])

--
Duane Hookom
Microsoft Access MVP


Chi said:
Hi,

I use IIf([ReserveDate] Is Null,Null,([ReserveDate] & " & " &
[ReserveDateTo])) to display ReserveDate & ReserveDateTo if ReserveDate is
Null. It works fine.

However, when ReserveDate has value, it displayed with &.

Ex: 12/22/08 &.

Would you please show me how to take the “&†off?

Thanks
Chi
 
M

Marshall Barton

Chi said:
I use IIf([ReserveDate] Is Null,Null,([ReserveDate] & " & " &
[ReserveDateTo])) to display ReserveDate & ReserveDateTo if ReserveDate is
Null. It works fine.

However, when ReserveDate has value, it displayed with &.

Ex: 12/22/08 &.

Would you please show me how to take the “&” off?


IIf([ReserveDate] Is Null, Null, [ReserveDate] & (" & " +
[ReserveDateTo]))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top