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.

selective update query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Waddy - 03 Jun 2006 09:25 GMT
I am trying to create an update query that will that find the difference
between two dates, but will only update if the result is not a minus number.
Any ideas ?

Terry Kreft - 03 Jun 2006 13:43 GMT
Where
   tablename is he name of the tabe to update
   F1 is the field to update
   F2 and F3 are date fields

UPDATE tablename
SET F1 = 'new value'
WHERE (CDbl(F2) -CDbl(F3)) >= 0

Signature

Terry Kreft

> I am trying to create an update query that will that find the difference
> between two dates, but will only update if the result is not a minus number.
> Any ideas ?
 
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.