Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / March 2008

Tip: Looking for answers? Try searching our database.

IIf and Trim

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chi - 19 Mar 2008 14:44 GMT
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
Duane Hookom - 19 Mar 2008 15:29 GMT
Try:
[ReserveDate] & IIf(IsNull([ReserveDateTo]),Null," & " & [ReserveDateTo])

Signature

Duane Hookom
Microsoft Access MVP

> Hi,
>
[quoted text clipped - 10 lines]
> Thanks
> Chi
Chi - 19 Mar 2008 15:46 GMT
Hi Duane,

It works perfectly! Thank you so much.
Chi

> Try:
> [ReserveDate] & IIf(IsNull([ReserveDateTo]),Null," & " & [ReserveDateTo])
[quoted text clipped - 13 lines]
> > Thanks
> > Chi
Marshall Barton - 19 Mar 2008 16:19 GMT
>I use IIf([ReserveDate] Is Null,Null,([ReserveDate] & " & " &
>[ReserveDateTo])) to display ReserveDate & ReserveDateTo if ReserveDate is
[quoted text clipped - 5 lines]
>
>Would you please show me how to take the “&” off?

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

Signature

Marsh
MVP [MS Access]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.