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 / October 2005

Tip: Looking for answers? Try searching our database.

Expression Builder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
theitman - 21 Oct 2005 17:04 GMT
I have a formula in an old Approach Database that I need to set as the
control source to an unbound field in Access on a report.  How would I
convert it?  Here's the formula:

If("Total # of Days" = 'N/A' and "Closed Date" > '', 'OK', If("Total # of
Days" = 'N/A' and "Closed Date" = '', 'N/A', If("Total # of Days" > '45',
'LATE', 'OK')))

Information:
1)   "Total # of Days" and "Closed Date" are both fields in Access (renamed
without spaces)!
2)  =''      means the field is empty
3)  >''      means the field is not empty

Please HELP!!
Duane Hookom - 21 Oct 2005 17:24 GMT
Is the field [Total # of Days] text or numeric? Your expression compares the
field to "N/A" and later to "45".

You might be able to use something like:
=IIf(IsNull([Total # of Days]) and Not IsNull([Closed Date]), "OK",
IIf([Total # of Days] = "N/A" and IsNull([Closed Date]), "N/A", IIf([Total #
of Days] > "45", "LATE", "OK")))

Watch for line wrapping.
Signature

Duane Hookom
MS Access MVP

>I have a formula in an old Approach Database that I need to set as the
> control source to an unbound field in Access on a report.  How would I
[quoted text clipped - 12 lines]
>
> Please HELP!!
theitman - 21 Oct 2005 17:48 GMT
Thanks, worked like a charm!

> Is the field [Total # of Days] text or numeric? Your expression compares the
> field to "N/A" and later to "45".
[quoted text clipped - 21 lines]
> >
> > Please HELP!!
 
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.