473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Convertion of negetive value to zero in access guery

22
I have a query with calculated field NVB which contain both positive and negetive values. I want an expr that convert the negetive value to zero. Pls helf
Jun 20 '18 #1

✓ answered by PhilOfWalton

Try

Expand|Select|Wrap|Line Numbers
  1. Iif(NVB < 0, 0,NVB)
  2.  
Phil

2 1216
PhilOfWalton
1,430 Expert 1GB
Try

Expand|Select|Wrap|Line Numbers
  1. Iif(NVB < 0, 0,NVB)
  2.  
Phil
Jun 20 '18 #2
Mafi
22
It works perfectly. Thanks
Jun 21 '18 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Andrei | last post by:
Hi guys, I got a CSV file with more than 300000 raws so I couldn't open it in Excel. I decided to use Access but I can't access the data using standard way such as Workbooks(Name).Cells(i,...
6
by: isetea | last post by:
Hi, I have two tables with text fields as well as number fields. I try to match the two tables. Sometimes two matched textfields show an unmatch even if there is no value in both fields. Sometimes...
0
by: macupryk | last post by:
DECLARE @SQL6 NVARCHAR(4000) SET @SQL6 = N'EXECUTE ' + @nvcDatabaseName + N'.dbo.sp_executesql N'' CREATE PROCEDURE . @ProjectQuestionId int output, @ProjectQuestionName nvarchar(255) AS...
3
by: godhulirbalaka | last post by:
Hai, I have a form where few checkbox contorls like chk_File chk_UserManagement chk_Transaction and a commanbutton named submit and a database in access where few fields in User Table like
4
by: bgreer5050 | last post by:
Where and how do I declare a variable that I want to use throughout the entire Access database? Thanks
3
by: manius | last post by:
im prety new so hope u will be patient. My questione is how to insert DataGridViewCheckBoxColumn value into access database. when i go like DataGridViewCheckBoxColumn.toString it seems does not...
6
by: grego9 | last post by:
I am trying to return a value from an access database by looking up a value in excel. This is the code I have copied from another source - but I cannot get it to work - I keep getting a run time...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.