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 / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Query Help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DS - 28 Jun 2006 21:43 GMT
I have a Query.  It has a StartTime and an EndTime field.  Both Fields
are Date/Time Type.  I made an expression that reads...

Expr1:=IIf([EndTime]<[StartTime],[After]=-1,[After]=0)

The After field is a Checkbox, essentially I want the CheckBox to be
checked if the EndTime is less than the StartTime.  This doesn't seem to
be working any help appreciated.

Thanks
DS
KARL DEWEY - 28 Jun 2006 21:53 GMT
You need to use an Update Query with this in the Update row of the design
view grid of the [After] field.
       IIf([EndTime]<[StartTime],-1,0)

> I have a Query.  It has a StartTime and an EndTime field.  Both Fields
> are Date/Time Type.  I made an expression that reads...
[quoted text clipped - 7 lines]
> Thanks
> DS
DS - 29 Jun 2006 02:41 GMT
> You need to use an Update Query with this in the Update row of the design
> view grid of the [After] field.
[quoted text clipped - 11 lines]
>>Thanks
>>DS

Thanks Karl.
It worked perfectly!
DS
 
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.