Question : MS Access - Rounding Issues

I would like to accomplish the following in MS Access:

Question 1) Take a number like: 174.8923451 and round it to two decimals -> 174.89
Another example would be: 169.8765421, should become --> 169.88

Question 2) In another instance, I want to round a fractional number to a whole number as so:
179.23 becomes 179  and 169.54 becomes 170 etc.

The ideas is .5 and higher gets rounds up, less than .5 gets rounded down

Basically, the kind of rounding I learned in school.

I realize that Access uses 'Banker's Rounding' - not sure why - and I can't find a function that accomplishes what I described above.

Anybody?

Answer : MS Access - Rounding Issues

Good consultant actually suppose to ask those question to figure out what you need.
First define in plain English for yourself what you need and, if this is existing application, what is our major  problem(s).

For better use of consultant time, if possible, try to split his visits. For example if you have DB performance/blocking problems you may need to get his advise on how to collect sample queries form trace, - this may take 1 hour, 1 day or 1 week or more depending on your application design and usage. Then you will implement their suggestions and again it may take time to see is if works or not.

if your intention is complete DB redesign - you need to prepare detailed description of your application, use cases, define what is UI for your database,  and list major problems with existing design

If your concerns is capacity/scalability - you need to define where you expect your growth and how DB structude will support it


 
Random Solutions  
 
programming4us programming4us