473,320 Members | 1,904 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,320 software developers and data experts.

how do I get rid of the trailing zero's from being displayed

The query function is:
Expand|Select|Wrap|Line Numbers
  1. SCHEDULE BBLS: IIf([BOTTLE SIZE]=11.2,Format([SCHEDULE CASES]/14.77,"###00.00",0))
The schedule cases amt in this case is 13600. The above formula produces 920.79000. How do I get rid of the trailing zero's?

Thanks,

Mike
Nov 3 '09 #1

✓ answered by NeoPa

It doesn't matter if the dropdown is blank. They are only values to choose from. You can easily type in any valid format string and it will work.

Alternatively, try :
Expand|Select|Wrap|Line Numbers
  1. SCHEDULE BBLS: Format(IIf([BOTTLE SIZE]=11.2,[SCHEDULE CASES]/14.77,0),'###00.00')

7 3532
NeoPa
32,556 Expert Mod 16PB
I would say to move the penultimate parenthesis left two positions.

What you want is :
Expand|Select|Wrap|Line Numbers
  1. SCHEDULE BBLS: IIf([BOTTLE SIZE]=11.2,Format([SCHEDULE CASES]/14.77,'###00.00'),0)
Welcome to Bytes!
Nov 3 '09 #2
Ok, I tried that and got 920.79 000 It just put spaces between the nine and the zero's.

Why is it that when you create a calculated field in a query the format drop down is blank?

Thanks for your help, let me know if have any more ideas on this.

Mike
Nov 4 '09 #3
NeoPa
32,556 Expert Mod 16PB
It doesn't matter if the dropdown is blank. They are only values to choose from. You can easily type in any valid format string and it will work.

Alternatively, try :
Expand|Select|Wrap|Line Numbers
  1. SCHEDULE BBLS: Format(IIf([BOTTLE SIZE]=11.2,[SCHEDULE CASES]/14.77,0),'###00.00')
Nov 4 '09 #4
I had about three iif statements trailing the one I provided thinking that it was the statement that was the problem and not the string. So, I took your original suggestion and then took out the additional iif statement behind it and the zero's disappeared. Next time I'll put the whole thing in cuz you guys know more than me.

Thanks for your help,

Mike
Nov 4 '09 #5
NeoPa
32,556 Expert Mod 16PB
@toofunny24
Amen to that Mike ;) It's always good to have the whole story to work with. Sometimes it's hard to determine what is relevant though.

As for the solution. I'd recommend the second (post #4) over the first.
Nov 4 '09 #6
Maybe you can help me with something else. I created a report that is in a column format. The column shows different material amts used in a particular record and the report is grouped by contract name and only shows records for a particular date. I managed to fit all the fields I wanted in the column and the report shows each record side by side. My question is this, is there a way to put the totals for each row on the right side of the page?

Thanks again

Mike
Nov 4 '09 #7
NeoPa
32,556 Expert Mod 16PB
I will be happy to give it a try Mike, but you'll need to post in in its own thread.

While you're about it, you may want to consider explaining it a little more fully. I have to say I wouldn't be able to help much from what you've posted here.
Nov 4 '09 #8

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

Similar topics

8
by: Steve | last post by:
Is there a way in PHP to zero fill an integer to a specified length? For instance, if I have a two digit number, and I want to zero fill it to four digits, is there a PHP function I can use? Or do...
2
by: Keali | last post by:
for example: A1 = 123 A1=123000 <- final result A1 =1234 A1=123400<- final result A1=1 A1=100000<-final result
7
by: RC | last post by:
I have a form with five text boxes on it. The format for all the boxes is set as General Number. In four of the boxes the user can enter a number, the fifth box totals up the values in the other...
3
by: Andy B | last post by:
I've tried using Trim or RTrim to strip trailing space characters from my data. When I check on the transformed data space characters are still there. We have an address table containing two...
3
by: V. Jenks | last post by:
I need to store money values in C# and I noticed when using a float, the trailing zero was trimmed off automatically. I don't want this, is there a native type that will *not* do this so I can...
3
by: keali | last post by:
for example: A1 = 123 A1=123000 <- final result A1 =1234 A1=123400<- final result A1=1 A1=100000<-final result
1
by: KevinGPO | last post by:
I am wondering about what's the best and easiest way to strip trailing whitespace from every single file in a folder, recursively. I want to write a program/script so that you pass in a folder...
9
by: Chester | last post by:
I'm working on an app that records data collected by service technicians (VB.Net front-end, SQL Server 2000 back end). The technicians need to record numbers with varying scale and precision. For...
1
by: padmaneha | last post by:
Count should be displayed as zero if there is are no recipes posted select f.dishes,f.contentid,f.titleurl,count(f.dishes) as Recipescount from food f inner join foodmemberpref fmp on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.