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

Converting text to display as currency in Report

15
I have based a report on a crosstab query. This query has eliminated all formats, i.e. all fields including those containing numbers are now stored as text.

Is there a way that i can get Access to reformat these 'text' fields as currency or standard 1,234,567 notation on the final report?

Thanks.
Oct 26 '06 #1
4 7406
NeoPa
32,556 Expert Mod 16PB
Either code in the TextBoxes of the Report as
Expand|Select|Wrap|Line Numbers
  1. =Format(Val([FieldName]),"#,##0.00")
or, possibly neater, create a query using the results of the CrossTab Query and create fields in the form
Expand|Select|Wrap|Line Numbers
  1. Val(qryCrossTab.FieldName) AS FieldName
The results of such a query would be able to be used in the normal way in your report.
Oct 26 '06 #2
pks00
280 Expert 100+
Try formatting the field using Currency
e.g.

Format(myfield,"Currency")
Oct 26 '06 #3
chengsi
15
Either code in the TextBoxes of the Report as
Expand|Select|Wrap|Line Numbers
  1. =Format(Val([FieldName]),"#,##0.00")
or, possibly neater, create a query using the results of the CrossTab Query and create fields in the form
Expand|Select|Wrap|Line Numbers
  1. Val(qryCrossTab.FieldName) AS FieldName
The results of such a query would be able to be used in the normal way in your report.
Hi NeoPa,

If I was using your first suggestion (i.e. code in the TextBoxes of the Report as
[code]=Format(Val([FieldName]),"#,##0.00"), where/how do i input this code?

Thanks.
Nov 10 '06 #4
NeoPa
32,556 Expert Mod 16PB
When you're designing your report, there are TextBoxes that display all the data - in the detail section.
Copy and Paste this (including the '=') into the 'Control Source' property (of the TextBox you want to display the value).
Nov 10 '06 #5

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

Similar topics

1
by: alien2_51 | last post by:
At some point after running this report the "Wholesale Price" column data type in the excel spread sheet changes from Currency to General... It seems to ba around the 300th or so row but varies......
0
by: Marcelo López | last post by:
Hello everybody. I'm working with an office pivot table and i have to convert from its currency type to a decimal (in C#) , operate with the result and then re-convert it to the currency type to...
3
by: Caesar Augustus | last post by:
Hello Tom, Long time listener, first time caller... I have been working with vb code to automate a salary increase process that not only rounds to the nearest penny but also rounds to the...
2
by: RC | last post by:
I am getting input from a digital scale and if the weight on the scale is 9.25 pounds, the input looks like: 009.25LB I need to remove the LB and the leading zeros and have the remaining value...
3
by: Scott Gorman | last post by:
I have created a report in access. I had to add a text box to input a value for previous months balance. I have formatted to display with $ currency, and also with the " , " for thousand separator....
116
by: Dilip | last post by:
Recently in our code, I ran into a situation where were stuffing a float inside a double. The precision was extended automatically because of that. To make a long story short, this caused...
6
by: BerkshireGuy | last post by:
On an unbound form, I have a combobox called 'cboproducttype' and a text box called 'txtamountappliedfor'. I have an Add button that I would like the user to be able to hit once a product and...
6
by: Gord | last post by:
I have a report whose Record Source I set in code when clicking on a command button on a form. This Record Source is a table that gets created by the code. I have a textbox on the report whose...
3
by: nandithadevaraj | last post by:
When exporting a report to excel, is it possible to keep the properties around numeric values? More specifically - when exporting a report into excel, all of the numbers in a currency column are...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.