473,396 Members | 1,935 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.

Roundup formula use in Access with help round formala

I am on a elementary level of MS Access skill.
I am trying to create an expression, where I want to round up the value in a field.
Expand|Select|Wrap|Line Numbers
  1. Expr1: ROUNDUP(Data![Duration]/60,0)
When executing the qry, I get :
"Undefined function "ROUNDUP" in expression, I am using Access 2000. What am I doing wrong, or Is there another way ?
After that we have use below formula but it not completely correct
Expand|Select|Wrap|Line Numbers
  1. IF((Data![Duration]/60)-INT(Data![Duration]/60)<0,(ROUND(Data![Duration]/60,0)+1),(Data![Duration]/60))
Pls help me for correct for below formala
Sep 17 '13 #1
2 5153
Stewart Ross
2,545 Expert Mod 2GB
Hi You are very close to being correct. The function you need is called ROUND, not ROUNDUP, and the IF function in Access is IIF (referred to as an in-line IF):

Expand|Select|Wrap|Line Numbers
  1. YourField = ROUND(Data![Duration]/60,0)
  2. IIF((Data![Duration]/60)-INT(Data![Duration]/60)<0,(ROUND(Data![Duration]/60,0)+1),(Data![Duration]/60))
By the way, the INT function does not round up - it just gives you the integer part of a number. Looking at your IIF statement I think it will always take the second branch, as the test you are applying will never result in a negative number. For example, if [Data Duration] / 60 = 1.9, the INT of that value will be 1, and the value tested by the IIF will be 1.9 - 1 = 0.9 which is non-negative, so the second branch of the IIF will be taken.

-Stewart
Sep 17 '13 #2
Thanks Stewart

We have use below formula in Excel "=roundup(Duration/60,0)"
we want same formula in Access ...But Access not suport "Roundup" Function...Then we have use Round function...
We have use below : "ROUND((Duration/60)+0.49,0)"
Sep 17 '13 #3

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

Similar topics

0
by: A.P. Madura | last post by:
Need help in debugging this problem. I have an access database which I use to demonstrate Java - ODBC connectivity and it works perfectly fine. This allows me to assume that the Data Source name...
4
by: Phoon Chee Keong | last post by:
Is that a formula in vb.net like Ms Excel? Currently my Excel formula is "=(((ROUNDUP(I30/3000,0)+1)*G30)/1000)+((ROUNDUP(G30/10000,0))*I30/1000)", but in vb.net how to write. Any idea? ...
9
by: Wayne | last post by:
I have used this old compiler since 1997, but for the last year or two, I can no longer access any of its Help info (like function definitions, etc). Attempts to do so now just says "the page...
1
by: mbeddedsoft | last post by:
I'm trying to use access as the database for a website. I don't expect too much traffic initially and I didn't want to bother with a more robust/complex db. Anyway, I have this 2 tables: Cart{...
3
by: news.giganews.com | last post by:
Does anyone know if there's an easy way to export or copy the relationship structure from one mdb to a new one? The relationships in the db are time consuming to reproduce. I am trying to make a...
1
by: Dave Martin | last post by:
I am working on a project that is giving me trouble. It has to be done quickly. It is being written in C# and I am totally new to C#. I need to update an MS Access database application that...
0
by: RJN | last post by:
Hi I have a main report and a sub report. I have a formula field on the main report and one on the sub report. I want the formula in the subreport to be evaluated after the formula in the main...
2
by: Don I | last post by:
Microsoft Visual Basic .NET 55501-640-5372443-18381 I'm trying to access the program's help files but all I get is "Page can not be displayed". Any idea what's up? Thx. Don I
4
by: DyingIsis | last post by:
Hello - I'm a relatively new user of Access. None the less, I have a function within Excel that I would like to recreate in Access. The function called (Check if part of a cell matches...
2
risk32
by: risk32 | last post by:
OK. So I have NO idea what I'm doing. I've only worked with Excel VBA, JS, and HTML. No clue how to use access since it's different (except maybe the VB portion of Excel VBA). I'm trying to make a...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.