Solved

Access report ( String and Currency )

Posted on 2006-11-20
6
324 Views
Last Modified: 2013-11-28
HI,

i have a field (amount) in Access which is in STRING format (e.g. "200.1050").
How can i display it (in Access 2000 or above) with 2 dec. pl, the currency figure "200.11" ?

Details:
i tried =sum([amount]), it will actually sum up the "string".
i tried =val([amount]), it will show "#Error"
i tried =CCur([amount]), it will show "0"

Thanks all...
0
Comment
Question by:Fiacre
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 46

Accepted Solution

by:
tbsgadi earned 30 total points
ID: 17985519
Hi Fiacre,
Val(Amount) should work
Check you don't have any extra spaces or Points
Good Luck!

Gary
0
 
LVL 4

Expert Comment

by:Carl2002
ID: 17985670
I agree with Gary Val(amount) is they way forward on this one. You could try val(nz(amount)).

Are you sure your amount field is text?

Carl.
0
 
LVL 38

Assisted Solution

by:puppydogbuddy
puppydogbuddy earned 20 total points
ID: 17986628
Try this:

Format([Amount], "Currency")
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 3

Expert Comment

by:SimonThompson
ID: 18000072
lol or... Format(Val[Amount],"Currency") or Format(Val[Amount],"0.00")
0
 

Author Comment

by:Fiacre
ID: 18004215
Unable to work yet.

The detail field is "det.amt"

data type "text"
field size: 16
required: no
allow zero len: no
indexed: no

it will show "#Error", even i tried wat's suggested..."Val(amt)", Format(Val(...)), etc.
0
 

Author Comment

by:Fiacre
ID: 18004229
=Format(Val(Trim([det.amt])),"Fixed")

ok, i tried the above, it's solved now.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question