Rounding Answers In A Calculation Field

May 31, 2013

Im building an expression where I am dividing fields by constants and adding them together. I need all answers always round down, so 19/20=0, 21/20=1

View Replies


ADVERTISEMENT

Multiple Answers For A Single Field

Nov 12, 2004

Hi, this is my first post here.

My question is this: I am creating a database for a student survey. Some of the questions may have multiple answers.
For instance, question 2 reads:
"What location/time are you taking courses (select all that apply)"

and the possible answers are:
1)Daytime/Oakland
2)Evening/Oakland
3)Saturday College
4)BC

- Where a student could be taking classes at multiple locations or times. I am completely lost as to how to set this up. I have tried to set the properties for the field on the form to accept multiple responses, but of course, these do not save to the table and so it's completely useless.

Thank you in advance for your help!!!

View 6 Replies View Related

General :: Checkboxes - Create Text Field On A Report That Show All Yes Answers

Apr 8, 2013

I have multiple fields in a table that are set up as Yes/No and display as checkboxes on a form. Now I need to create a text field on a report that showes all the Yes answers. The text field needs to figure out if it's a Yes answer, then display the field name, if there is more than one yes answer in the fields it is looking at, it should separate each with a "," . This is a large text field, that could show as many as 10 Yes answers.

What is the best way to go about doing this? I use Access 2010

View 1 Replies View Related

Rounding Down In A Report Field

May 27, 2014

I am creating a student database for our instructors to track attendance and grades. The grades will be printed out as a progress report / student transcript. In order to comply with our accrediting agencies, I must calculate the units of study credits (two separate columns) and have the total Credits round down to the .5

So for example: column 1 = .40 , column 2 = .30, Total = .70 but the rounded down total would be .50

This is the Excel formula used to get that calculation =FLOOR((E11+G11),0.5) How do I create the expression to do the same in my report in that field?

View 4 Replies View Related

Calculated Field - Rounding To .99

Jun 25, 2015

So I have a Calculated Field

If the price is .01 to .08 I want it to round up to .99 if it is 1.00 to round down to .99

The current Calculated Field is this:

Code:
IIf([ORIG_LOCATION]="",0,IIf([ORIG_LOCATION]="DL",Round([SHIPPED_PRICE]*1.667,2),
IIf([ORIG_LOCATION]="PJ",Round([SHIPPED_PRICE]*1.25,2),
IIf([ORIG_LOCATION]="SB",Round([SHIPPED_PRICE]*1.667,2),
IIf([ORIG_LOCATION]="WF",Round([SHIPPED_PRICE]*1.25,2),
IIf([ORIG_LOCATION]="CNC",Round([SHIPPED_PRICE]*1.667,2),
IIf([ORIG_LOCATION]="CNB",Round([SHIPPED_PRICE]*1.25,2),
IIf([ORIG_LOCATION]="WFS",Round([SHIPPED_PRICE]*1.25,2),0))))))))

View 5 Replies View Related

Queries :: IIF Statements - Rounding Value In Calculated Field

Mar 24, 2014

I am using access 2010. I have a query with an iif statement on a calculated field im trying to round up. ex.

Code:
TotalDiscount: Round(iif([field1]="Piece",[int]-[decr],[field2]*[field3]/[field4],3))

I get an error something like "wrong number of arguments or expression on comma.

View 2 Replies View Related

Queries :: Field In A Table That Keeps Rounding Data Entry Off

Nov 11, 2013

I have a field in a table that keeps rounding the data entry off. It has identical properties to the field next to it but one rounds and the other does not. I tried deleting the field and creating a new one.

View 5 Replies View Related

Queries :: Rounding Value In Calculated Field In Crosstab Query

Aug 4, 2015

I have a very basic query with the following calculated field in it:

ProjRevNRC: IIf([ProjRevDate]>=DateSerial(Year(Date()),Month(Date()),1),[CurrentNRC]*[Rev Flow Through],0)

I went into the properties if that field inside the query design and changed it to Standard with 0 decimal places and it worked fine.

But when I based a crosstab query off the query that contained the above calculated field, I cannot seem to get the numbers to format correctly. 1231313.424 is shown instead 1,231,313 and I don't have a line in the Properties window to even change the decimal places. It doesn't recognize when I change the format to Standard. I have tried using Round([ProjRevNRC]) which gets rid of the decimal places as desired but does not show commas.

I'm sure it's a simple part of the Round expression that I am missing but nothing has worked.

View 4 Replies View Related

Tables :: Decimals Rounding Even With Double Field Size

Nov 8, 2012

For some reason I cannot enter decimal values without the number rounding up or down. I've already set it to 'Number' and 'double' and have also tried 'Fixed' set to 2 decimal places. Right now the only way it works is if I set it to 'Text'. However I need to do some calculations with these values eventually.

What's strange is I have another table in the same database that is NOT rounding and is working just fine.

View 3 Replies View Related

Reports :: Rounding A Calculated Field (Nearest 3 Decimals)

Apr 17, 2013

I have a field that sums pounds. I need to convert this to tons (rounded to the nearest 3 decimals), then multiplied by $67.50. This will calculate a fee payment.

This is what I have now:

Code:
=Round(Sum([Hazardous_Waste]/2000*67.5),3)

The total pounds is 2675.

After dividing by 2000, Access generates a number of 1.3375. It rounds 1.3375 to 1.337 which generates an incorrect final total. Not sure how to alter this to round properly.

View 9 Replies View Related

My Database Is Nearly Finished!!! Looking For A Few Answers 8)

Feb 7, 2007

Im nearly finished creating my first real production database, its pretty exciting! Theres a few things that I need to accomplish to consider it 100% working and im wondering if anyone has any input on the following matters:

1) Users import their data via an excel spreadsheet. Its all done behind the scenes. One routine pulls in information about servers from an excel spreadsheet and after formatting it via queries, puts it in the main table. The spreadsheet in question starts with the servername cell. On the spreadsheet, the first row contains the name of the server, but the second and subsequent rows contain blank space in the servername column, but imply that the rest of the information is for the various connections associated with that server listed above... IE:

Column "ServerName"
Row1: Server1 IP address Switch Etc
Row2: <blank> IP address Switch Etc
Row3: Server2 IP address Switch Etc
Row4: <blank> IP address Switch Etc
Row5: <blank> IP address Switch Etc
Row6: Server3 IP address Switch Etc
and so on and so on...

What im wondering, is if its possible to fill in the blank spots with the cell above the records that start blank? (to populate the record with its respective server). Any input on methods to accomplish this would be appreciated.

2) Is there a way to attach code to the different buttons on the record selector? For tracking purposes, everything that my users do is stored in a seperate table. The only thing I cant seem to track is when users enter a record via the main data entry form. Automated tasks are no problem, but I cant seem to find a method to attach code to, say, the next record button on the default record selector.

3) I have a few queries that collectively import data from excel. When I do this, I remove confirmation messages so that users dont have to click through a sea of 'OK's. Im wondering if theres a way to count how many records get pulled in from an import, seperate which were good and which were bad, and simply pop up a message box stating that X records were imported succesfully, and X were not due to whatever reason.

4) Is there a way to sort text as if it were a number? I have a few fields that need to be text format, but contain numbers most of the time. The sorts always put 1 above 10, 9, 8, 7, etc, and id like to either find a way to make a query that changes all single digit numbers to double digit numbers or simply sort it in a numerical format.

5) What considerations should I take into account when it comes to the amount of data that access 2003 databases can effectively store and use? Ive heard that access can effectively handle 32000 records or something to that effect. Over that, what will I be dealing with? Slow performance? A complete roadblock?

I realize that there are a lot of questions here, and by no means wish to have my work done for me. Id very greatly appreciate any feedback that anyone wishes to give 8) Even if you dont want to code routines for me, thats fine.. I actually enjoy figuring this stuff out on my own, and a simple nudge in the right direction would suffice.

Thank you so very much!

View 2 Replies View Related

Searching For A Persons Name Which Gives Multiple Answers

Jan 31, 2006

Please help me !

I am in the process of creating a database in access to search for a persons name. However, the results will give many ansers. For example if I search for the srname 'jones' I get many names. I eed then to be able to select one of these jones's with the information relavent information.

It has many years since I have done this although i did have quite a good knowledge at the time. Plesae can you make any suggestions and answers as basic as possible !

Many thanks in advance http://forums.aspfree.com/newthread.php?do=newthread&f=18#
Mad

View 7 Replies View Related

(parameter Textboxes)Never Clear Answers

Nov 18, 2006

I been trying to figure out how to do this for some time now. But nobody seems to be able to know the method. I have searched the message board and tried the techniques that were suggested but none of them seem to work effective. Here is the problem:

All I want is a 2 textboxes on a form that where a user can put in the parameters for a query. The users clicks on the generate report button and the report pulls the textboxes's data as the parameters data. Report opens and its done. Every time I try this I get the query still asking for the parameters. Is there a sample database that someone can point me to that is using this method for the parameters. The Microsoft website has nothing pertaining to this matter. Only reason I am trying to use this is to stop people from putting in the wrong parameter information and it would look better then that generic parameter box that pops up.

Sorry to be a pain in the you know what!

View 3 Replies View Related

Multiple Answers Combo Or List Box

Jan 23, 2006

Is there a way to make a Combo or List Box let you choose more than one answer?

I have a field that is a Combo box that lists all the employees in the office. I need to be able to select more than one employee to assign to a task.

View 4 Replies View Related

Need Answers About Standalone Access File

Oct 18, 2007

I just have a question, is there anyway to create a standalone ms access 2003 file. I want to be able to create a ms access db that has forms and certain reports.

I have a client who needs this ms access file to distributable to his clients (who can use it without having ms access file). Also he him self can make changes, to the forms, etc. Without any programming knowledge, change the look of the forms, add queries, etc. And be able to send the updated version of the ms access file to his cleint.

Can this be done? I have suggested using a vb frontend & and ms access as a backend, but he would have to pay someone to make changes, add reports, etc. And he wouldn't be able to do it him self becuase of lack of programming knowledge, he only has medium knowledgable of Ms Access.

So can this be done, is there a sdk i can use?

Thanks,
will

View 3 Replies View Related

General :: Show / Hide Fields With Answers?

Sep 19, 2012

I have a combo box with the following

YES
NO
EXPIRED
this is named "Permit_Holder"

when you click yes i want two extra fields to appear called

"Permit_Date_Issued"
"Permit_Date_Expired"

but i cannot seem to get them to hide or show?

I have used the below codes but no success

Private Sub Permit_Holder_AfterUpdate()
If Me.Permit_Holder = 1 Then
Me.Permit_Date_Issued.Visible = False
End If
End Sub

Quote:

Private Sub Form_Current()
Me.Permit_Date_Issued.Visible = False
End Sub

View 6 Replies View Related

Calculation Of Field Based On A Field In Access 2000

Nov 8, 2004

KTYPE=text; EXPIRATION_DATE=date/time; OVERAGE=date/time

im doing a report based on a query (which has a few fields, including KTYPE, EXPIRATION_DATE, OVERAGE). im trying to determine the OVERAGE based on the following conditions:

here are the conditions:

if KTYPE="PO", then OVERAGE:=(EXPIRATION_DATE + 6 months)
ie.. KTYPE=PO, OVERAGE:=(01/04/2004 + 6 months) = 07/04/2004

if KTYPE="IAA", then OVERAGE:=(EXPIRATION_DATE + 20 months)

if KTYPE="FA", then OVERAGE:=(EXPIRATION_DATE + 12 months)

and so on and so forth.

I'm very new to Access. What formulas do I use and do I put the formula in the query or the report.

Please help. thanks in advance

View 2 Replies View Related

Tables :: Possible To Give Written Answers A Number So They Can Be Graphed

Aug 12, 2013

At work I have been tasked with a few Access based problems and one of which is making one of their handwritten feedback forms be input on Access so then responses can be graphed and analysed.

Is it possible to give written answers a number so they can be graphed.

For example.

Question 1 - Give me an example questions?

Answers:

1. Yes
2. No
3. Unsure

So you can see how many have each one when you graph the results. As I have it created with foreign keys at the moment it is displaying the text when I do the queries.

Also... is it possible to make a button so an interactive pdf report can be sent to all the selected user's email addresses?

View 9 Replies View Related

Getting Field Name Via A Calculation

Nov 21, 2005

Hi,

I have a cross tab query that has field names 6, 7, 8, 9, 10 representing months and a relevance date field with a date.

I have a form and from that form i need to get the value of the last three months from a relevance date field.

I.e relevance may be 01/10/2005 so i would need 3 labels, (labels are already made, but there source needs to be) 10, 9, 8. But the next row may have a relevance date of 01/08/2005 in which case it would be 8,7,6.

Any ideas on how i can do this.

Thanks Adam

View 3 Replies View Related

Saving A Calculation Field

Aug 12, 2005

Having some problems with a calculated field on a form. The field came from my table but I typed in the calculation (=[cost_price]+[sale_price]) and it works fine but it wont save to my table so when I run a repot off it doesnt have any of the calculated values because they arent saved in my table??? Can anyone help?

Thanks
Tom

View 2 Replies View Related

Field To Perform This Calculation

Feb 23, 2007

How do I get a field to calculate this formula?
I want a script to find the precise current date and from another field find a number and add it to the current date day to make current date + number = date in the future.

For example
Field: Total Nights Hired = 2
Field: Date due back = 23/02/07 + 2 = 25/02/07

I am sorry if I did not explain this well enough. I am totally new to databases but need help in my corsework. I am designing a video rental system.

Any help will be greatly appreciated.
Andy

View 7 Replies View Related

Text Field That Needs Calculation

Apr 16, 2008

So here is my problem i am semi access savy but i have having trouble with one thing. At work when we make a schedule there are 5 possibilites for how you want to mark your day. I have created a field using text as my parameters since my possibilities include both letters and numbers. At the end of each week I need to create a calcuation only utilizing the number which is 1 to add up the total shifts in the week.

I have tried some IIF statements with no luck. The 5 possiblities are 1, c,r,a,l. Each of the letters stand for something. When the scheduler runs the query he needs to see the letters or the number for each day. But i can't create a properly working calculated field for adding all of the 1's together only. The letters don't need to be added. Any ideas?

Also I have to run a sum for the total of each day at the bottom so I am running into the same problem there if there is any letters in the boxes. Going to a number field is not an option
thanks for the help

View 6 Replies View Related

Unbound Field Calculation

Jul 31, 2007

Below is the code I have written to calculate the arrival and departure times based on the users input on time in the air (tripETE) and on the ground (tripGT). The arrival (txtArrTimeZulu) and departure (txtDepTimeZulu) times are unbound boxes since there is no need to save the information. My problem is when the next leg's ground or air times are entered, it updates the arrival and departure times for all the records to that value; overwritting the previous legs times. What am i missing here? Do i need to open a recordset when opening the form or when entering "TripETE" and "TripGT"?....

View 1 Replies View Related

Sum IF Else Minus - Calculation In Field

Mar 4, 2013

I have a report which is a statement. I want to be able to have a field that calculates rent, and minus payments. There are a few rent types, Pro Rated rent, Rent brought forward and rent changed, then there is 1 payment type. I am trying to write the sum a few ways, but have not had success. If rent type i= 1 or 2 or 3 I want it to add, if rent total = 4 I want it to minus.

=Sum(IIf([RentType]=1 Or 2 Or 3,[RentAmount],0))-Sum(IIf([RentType]=4,[RentAmount]))

View 2 Replies View Related

Global Field For Calculation In A Form

Aug 22, 2005

OK, I figured out how to make a calculation. My big problem now is to have a global field, which would be "beginning balance" and "ending balance". I have 5 employees that share the budget. The budget starts at $1280.00. One employee may buy somthing one day and then another day while another employee may also buy something. I want to be able to put in the amount the employee spent and have it deduct from the balance. But then when I go to another employee and subtract what they spend I want that to subtract from the balance. I want the balance to be visible at all times no matter what employee I am on. Hope this makes sense. I have an attached file that shows how I did it for one employee. Cannot figure how to be able to do it for each employee and just the balance changes. Also I built a subform to be able to show different dates. But the problem again is having it subtract from one global balance. Thank you.

View 3 Replies View Related

Field Calculation Not Saving To Database

Aug 26, 2005

I have the calculation =DateDiff("yyyy",[DOB],Now()) in the Data/Control source properties of a numeric field in a database/form which correctly calculates age in years from a date field DOB. How do I get this field to save to the database?
Georgina

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved