Problem Converting Currency Value
Sep 14, 2007
I am trying to create a fixed format datafile which contains currency amounts. The problem is that the format the values have to be in "drops" the decimal point and also has to be paddded out to 11 characters. Example
102.56
978.56
126.70
should be in the file as follows
00000010256
00000097856
00000012670
I can "sort of" get there using format, the problem is with the last example where the value is 126.70. This is treated as 126.7 and gives a result of
00000001267 (equates to £12.67) when it should be
00000012670 (£126.70)
Have tried splitting off the pence using RIGHT([value],2) with a view to then adding back to the pounds but to no avail as it ingores the zero amount and gives .7 rather than 70.
Have tried using CStr but same problem arises where the value is really only 1 decimal place
Am now at the end of my tether! Any suggestions short of sacrificing an animal at midnight under a full moon would be much appreciated (yes I am that desperate).
View Replies
ADVERTISEMENT
Dec 20, 2012
how to change default currency in Access 2013 to a "foreign currency" (i.e. to Indonesia Rupiahs) without changing control panel (Region/Language>currency) - now setup as USA ($US)?
View 3 Replies
View Related
Jun 13, 2006
I have set up a number field to enter in the amount of money we have spent on a particular project, and when I enter, say £645.18, once I press TAB to move to the next field, it reverts to £645....
I have the decimal places thing set at 2, and the format on currency......
View 3 Replies
View Related
Aug 21, 2006
Hi ,dear friend, which games have you ever played? Here are some good news about games for you, You can focus on this website. and this website can give you a hand in time, when you are in trouble. I think if you want to play the game well, you must have good weapons, right ? so if you want to buy the gold, it is one way you can buy the gold to buy the weapons. we deliever gold vvvvvery fast and provide excellent service
the website is [url=http://www.gneedg.com]
you can come to have a try!!!!!!
and wish can make friends with you in games or out of games.
network games:
US WOW , Maple Story
EURO WOW, Matrix Online
FFXI , EVE Online
DAoC ; Rose online
Guild Wars ; Rune scape 2
EQ2 Ragnarok Online
Dungeons and Dragons Silk Road online
and so on or Power Leveling.
you also can contact them via:
AIM:gilssales
ICQ:108239029
Yahoo: sellgilstoyou 5051360 8379263 13107942609
Msn:gils_sales@hotmail.com
http://www.gneedg.com
View 1 Replies
View Related
Jan 19, 2005
Hoping someone can help. I have looked for an answer and can't quite grasp what I need to do. I am using Access 2000.
Basically, I have a quote form that adds together all job related services and totals them using a currency field. Sales would like to have the option of quoting the job two decimal places or going out to three. So, I need to round to the two different cost options. I can't figure out how to do this. So, my question is:
1) Am I using the correct data type?
2) If currency is most appropriate, how do I show results such as:
$12.327 and $12.33.
If I only change decimal property (therefore, the display) for the fields, the form shows: 12.33 and 12.330. Have tried using the Round function different data types and not having any luck.
Hope this makes some sense. Thanks!
View 1 Replies
View Related
Mar 24, 2005
This is probably the easiest question to answer if you know where to look but I don't.
Working in the UK with Access 2000 I need to set the field in a table to show Dollar $ USD however the only values I have are £ GBP and € as defaults.
Now I thought that I could get this to change if I changed my regional settings but then it occurred to me that if I do that and it changes then surely it would mean that who ever used this database in our global organisation would end up with a currency shown in their own local currency. Whilst this may not seem like a problem it is if you don't realise and quote a figure to someone in your local currency.
i.e. at present the UK £ = nearly $2 USD
So if someone in the UK read the figures and it dispalyed £400,000 and quoted this to a person in the USA when in theory the figure was meant to show $400,000 it could cause all sorts of issues.
Can someone tell me the correct way of choosing $ without it affecting anything else.
View 2 Replies
View Related
Jun 3, 2005
Hi All.
In my calculation in a query:
Cost: Sum([Cost]/12*(DateDiff("m",[StartDate],Now())))
Cost is Currency;
StartDate is Date.
The result look like Numeric format I would like to have Currency format. Is it possible?
Thanks.
View 1 Replies
View Related
Dec 7, 2005
Hello All,
I'm only fairly basic when it comes to Access, and I need some help with a query. Im running Access 2003 on XP Pro, and my current database is in a one to many relationship with Staff and Activities. A part of the Activites field involves the expenses of that particular activity. I have a field in my Activities table saying total expenses. The expense formats are in currency (including total). When I go to make a query, I'm using the following critera for the TotalExpenses field. "FoodExpenses"+"OtherExpenses". However, when I go to run the query, it tells me that there is a data type mismatch in the criteron expression. I changed the field formats to text and it will run. Can access 2003 support currency based querys and if so how? It would be really handy to know.
View 5 Replies
View Related
May 1, 2006
Hi to everyone. I have this form that my let's say clients should fill in. In one drop down list I need the client to be able to choose different currency i.e. euros or pounds or dollars. But I need the symbol to appear in the list and since the field is currency type I can't use the lookup wizard to decide what values should appear in that list.
How is this possible? Should I make an extra field of text type to choose the currency and on another field of number type to place the value I need or is there another way?
Hope I am cleaar enough...
Kyriakos
View 1 Replies
View Related
May 6, 2006
Me again. :)
Basic outline: I have a form that lets me select items from drop down boxes, and attached to these items are prices. There's 11 items on the form that need to be selected. Quick diagram.
----
[Item 1]
[Total of 1+2]
[Item 2]
[Item 3]
[Item 4] [Total of 3+4+5]
[Item 5]
[Item 6]
[Item 7] [Total of 6+7+8]
[Item 8]
[Item 9]
[Item 10] [Total of 9+10+11]
[Item 11]
[Total of the 4 Total Boxes above]
----
They've all been set to currency, and what I'm trying to do is to have it so that the final total box there at the very bottom cannot exceed a certain value without giving the user a warning and not allowing it to be accepted.
I guess the problem is that I can't get it to work. Here's the code I'm using to do it:
Private Sub TxtTotal_Change()
If Val(TxtTotal) > 85000000 Then
MsgBox "Total over allowed limit. Change selection."
End If
End Sub
I should note that on this form I had to use 'Val' infront of the boxes names, as when I was adding up the totals it was putting the prices side by side and not totalling them. For example if I added 2+2, it would give me 22 in the box instead of 4.
Any suggestions?
Thanks in advance.
View 6 Replies
View Related
Jan 26, 2006
Hi all!
I have an unbound text box (txtInstAmt) that needs to be displayed from a table (tblLoan.fldInstAmt). Both the fields in the table as well as the text box have been set to Currency.
However, my code doesn't seem to work.
I get an error msg saying that the value isn't valid for the field when I set the decimal places to 2 in both the table and the form. When the decimal places are set to Auto, I get a Data Type Mismatch.
Can someone please tell me what's wrong with this code?
Code:Private Sub cboLoanSN_AfterUpdate()Dim DAOdb As DatabaseDim DAOrs As DAO.RecordsetSet DAOdb = CurrentDb()Set DAOrs = DAOdb.OpenRecordset("Select * from tblLoan where fldLoanSN='" & Me.cboLoanSN & "'")With DAOrsMe.txtInstAmt = .Fields("fldInstAmt")End WithMe.cboDateRepay.RequeryEnd Sub
Thanks a lot!
View 9 Replies
View Related
Jan 29, 2006
Hi everyone,
My query concerns Currency in that i have declared some variables as Currency but when i try to output them they appear only as if they are formatted as numbers i.e. £0.50 as a currency variable when displayed in a MSgbox displays as 0.5 not a big problem you might think but i am trying to output these numbers to a retail printer as part of an Epos application. i can add a £ sign to the beginnning but adding missing zero's to the end is proving a little more tricky. I have cheked that the international settings on the PC are set to English, £, 2 decimal places ETC
Thanx
View 1 Replies
View Related
May 22, 2006
I'm having a problem getting imported data to display what I want. I'm importing a fixed width file and one of my fields is a currency amount. The field value in the file is 12 characters with the last 2 as the cents (000000544990) I have my access field type as currency with 2 decimals (and I've tried many other settings auto,0 etc.) When I do my import it displays my data as $544,990.00 If I tell it no decimals it displays $544,990 It should be displayed as $5,449.90 somehow it keeps adding 2 characters and uses them as the cents instead of using the last 2 from my file.
Any suggestions?
Thanks for helping me out.
Rick
View 9 Replies
View Related
Jan 25, 2007
Hi.
I really need to convert fields with currency data into text values AND still keep the decimal point and the numbers after it.
But how?
Russ
View 2 Replies
View Related
Nov 3, 2005
I am setting up a db for a ecomm site and the vendor prices are in 4 different currencies. I currently have the price fields data type as a "number" (long integer). Can the data type "currency" handle different currencies all in one table? Do I need to set up a seperate price table for all the products in each currency? Any help is appreciated.
View 2 Replies
View Related
Apr 7, 2006
I'm currently setting up a data base in which I want to store price with a Japanese Yen Currency indicator. Is this possible? The Format allows for either Dollars or Euro. I like to use preferably ¥ or JPY as the currency indicator.
View 5 Replies
View Related
Apr 24, 2006
How do I create a table using CREATE TABLE for fields that are Currency and Yes/No fields???
This does not work.
SQL = "CREATE TABLE Voucher_Details (VoucherReference NUMBER, ProductID NUMBER, Cost CURRENCY, Redeemed BOOLEAN)"
View 3 Replies
View Related
Feb 5, 2007
Hi,
I am creating a database of private equity funds. I want to have a currency field for an input entitled fund size. However, I need to be able to display whether the size of the fund is in dollars or euros. How can customize a number/currency field to allow me to input the correct currency symbol?
Thanks
View 3 Replies
View Related
Aug 15, 2007
Hi,
I have tried to add up fields in a table but am struggling to get it to work. Can anyone help please.
In design view of tables, I have four fields (that I will be using in a a form eventually);
RaffleIncome
AlmsIncome
OtherIncome
TotalIncome
I want to get the TotalIncome field to automatically be the total sum of any or all of the other three.
I have tried putting =[RaffleIncome]+[Almsincome]+OtherIncome} in the control box of the TotalIncome field (a guess) in a form I made, and it gives me the total sum of the others three but does not save when I look at it in the table view. (that is, the TotalIncome column remains £0.00)
I am learning as I go along and am okay figuring some stuff out, but this has got me a bit frustrated, and I guess I cannot see the wood for the trees !
Thanks anyone
Adrian
View 6 Replies
View Related
Mar 24, 2006
when i am creating a query and need to be adding up all the data in the field, such as with the price needed to be paid overall the items, what do i have to do to create a part of the query or report to do this automatically for me? basically its a huge column of numbers that need to be simply added together and a grand total taken. please someone help. cheers.
View 3 Replies
View Related
Mar 24, 2006
when i am creating a query and need to be adding up all the data in the field, such as with the price needed to be paid overall the items, what do i have to do to create a part of the query or report to do this automatically for me? basically its a huge column of numbers that need to be simply added together and a grand total taken. please someone help. cheers.
View 2 Replies
View Related
May 12, 2006
A friend has developed a database at college. All seems pretty well but the query she uses to populate a form and reports is incorrectly displaying the curence. Her main tables are just number fields. The query calculates correctly but her lecturer has told her the query needs to show a £ sign with the figures retrieved. Any ideas?
View 2 Replies
View Related
Aug 30, 2006
Hello,
I would like to format the currency values in a query. There values will either be Euro or Pound. Is it possible to change the currency format "on the fly" in this way in a query?
I would like to have a variable currency format. For example:
If [fldCurrency] = [Euro] Then format [fldAmount] As Euro
If [fldCurrency] = [Pound] or [GBP] Then format [fldAmount] As Sterling
How does one format data as Euro?
Many thanks,
Dj_T
View 1 Replies
View Related
May 26, 2005
I am sure it must be very simple but I can't find the command!
I need to convert a currency value to a text value for use in a combined string, say £123.00, to the text string "£123.00".
Basically I want one of the reports to say "£123.00 each less x% discount".
Currently I am using :
[Door Price] & " each less " & [Discount] & "% discount"
which will display "123 each less x% discount"
I could add the £ sign in code but if I add the .00 as well I will then have problems with a price of say £123.50!
Surely there must be a simple command that does this for me?
Cheers!
John
View 2 Replies
View Related
Aug 9, 2006
Hi
I have a field on a Form that displays values in Sterling (The Default on the machine) ie with the pound sign before the numbers.
I need to change the sign before the numbers to Dollar at a click of a button. I'm not interested in actually converting the values from Sterling to Dollar but only to change the sign. So I attached the code below to a Button's On Click Event, but I get an error = Expected.
Format([ControlName] , "$#,##.00")
ViRi
View 2 Replies
View Related
Apr 1, 2008
I have a field that adds up hours and minutes from a number of fields control source set to:
=HoursAndMinutes(([PaidHours]+[HolidayHours]+[OverTime])*[Pay]/100)
Where the Pay field contains the rate of pay in pence.
This then displays the value in the following format 15:00 what I would like to do is have this value displayed as Currency it makes no difference if I set the format to Currency is there a was to have it displayed as currency ie,
£15.00 any help would be appreciated.
View 3 Replies
View Related