A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Convert Negative values to zero



 
 
Thread Tools Display Modes
  #1  
Old July 17th, 2007, 08:51 PM posted to microsoft.public.access.tablesdbdesign
Majic
external usenet poster
 
Posts: 72
Default Convert Negative values to zero

I am calculating downtime in query. Of course, when you have a
negative value is not considered downtime and I want to be able to
convert all negative numbers to Zero.

Please help me out

Thank you

  #2  
Old July 18th, 2007, 08:50 AM posted to microsoft.public.access.tablesdbdesign
scubadiver
external usenet poster
 
Posts: 1,673
Default Convert Negative values to zero


I thought an update query would be appropriate (update to zero when the
criteria is less than zero) or you may be able to use the afterupdate event
in the form.


"Majic" wrote:

I am calculating downtime in query. Of course, when you have a
negative value is not considered downtime and I want to be able to
convert all negative numbers to Zero.

Please help me out

Thank you


  #3  
Old July 20th, 2007, 07:31 PM posted to microsoft.public.access.tablesdbdesign
Majic
external usenet poster
 
Posts: 72
Default Convert Negative values to zero

On Jul 18, 3:50 am, scubadiver
wrote:
I thought an update query would be appropriate (update to zero when the
criteria is less than zero) or you may be able to use the afterupdate event
in the form.



"Majic" wrote:
I am calculating downtime in query. Of course, when you have a
negative value is not considered downtime and I want to be able to
convert all negative numbers to Zero.


Please help me out


Thank you- Hide quoted text -


- Show quoted text -


Thank you

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.