IIf and Trim

  • Thread starter Thread starter Chi
  • Start date Start date
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
 
Try:
[ReserveDate] & IIf(IsNull([ReserveDateTo]),Null," & " & [ReserveDateTo])
 
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
 

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

Similar Threads

Date and Time 1
IIf statement 9
Address box with IIf Statement 7
Using iif Null and 0 5
IIF statement help 13
IIf function 2
Using an IIF with a DLOOKUP? 2
#Error in reports using IIF - worked previously 1

Back
Top