473,797 Members | 3,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sum the value of unbound control in report

50 New Member
I need a report that generate the total value of project from a few foreign currency to USD.

In report detail section:
There are 2 fields (CURRENCY,CurrV alue) from query table which are displayed in bound control (text box)

To convert to value in USD, I have created a text box txtConRate, where users need to key in the conversion rate. Then there is another text box (txtValueinUSD) to calculate the converted value, where i set its control source to =[CurrValue]*[txtConRate]

In report footer:
I try to get the total converted USD amount and set the control source of txtTotalUSD as Sum([CurrValue]*[txtConRate]), but it wouldn't work. Sum only work for the fields from query/table, but it did not work for unbound value/calculated value :(
Can anyone guide me how can i get the total value for converted USD? Thank you very much.
Jul 7 '10 #1
5 2527
NeoPa
32,579 Recognized Expert Moderator MVP
You talk about an operator entering an exchange rate into a TextBox in your report. That's not possible is it? TextBoxes in reports are not updatable by the operator.
Jul 7 '10 #2
beemomo
50 New Member
Thanks NeoPa for your reply.
Hmm, no other way except enter the exchange rate into another table and query to get the result?

Beemomo
Jul 7 '10 #3
NeoPa
32,579 Recognized Expert Moderator MVP
I don't follow clearly what you're asking (or your response to my question) so I'll try again, with a slightly updated understanding.

Maybe you are thinking about this rather than already have it working. If so, have you considered controlling the input from the operator via a form?
Jul 7 '10 #4
beemomo
50 New Member
yes, i've considered that before, input the value via a form. But the purpose i let user to enter the value of the exchange rate in the report is because, they only have to enter the rate for the particular currency group after the report is being generated.
Jul 7 '10 #5
NeoPa
32,579 Recognized Expert Moderator MVP
As I have very little idea of what is in your report I have equally little idea what your explanation means. I can only understand things I have experience of. I have no experience of anyone being able to enter values into a report. I have no idea what is in your report. Anything you say which requires such knowledge is meaningless until I have the knowledge to work with.

Let's start again, as you seem to be coming round again to talking of entering values into reports. Are you possibly talking about a parameter of the query the report is built on?
Jul 7 '10 #6

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

Similar topics

2
1709
by: Georges Heinesch | last post by:
Hi. I cannot change the value of an unbound control (txtSR and txtSS) within a sub call. I explain ... my sub (SRSS_set) takes the date (type date) as input, and returns 2 values (type time). Public Sub SRSS_set(varDate As Variant, _ varSR As Variant, _ varSS As Variant)
0
1465
by: Bob Bykerk | last post by:
Hyperlinks work fine when using bound controls but when I try to get one to work on an unbound control (with hyperlink? = true) I can't insert a hyperlink or use the data as a hyperlink. I have gone down the unbound forms route as this looks to be the most reliable and fast method. How can I get this to work?
3
2359
by: Trevor Hughes | last post by:
I am trying to resolve a problem I'm experiencing in Access 2000. I have an unbound control which is set be code on the open event of a form. However when I try to subsequently run some code which references the value in the unbound control, the code cannot see the value set. If however I manually type in the value into the unbound control the code works fine. I have tried to Refresh and Repaint the form, but this does not solve the...
1
2682
by: Jim M | last post by:
To prevent data corruption I have replaced a memo field on my form with an unbound control on my form that I populate with a function that fills it from a memo field from my table. When the form is closed, another function in a query writes it to the memo field. No trouble. When I run spell check on the form it makes the corrections in the memo field, but does not save them when I write from the form: I put this in the AFTERUPDATE...
0
1151
by: Barbara Schmidt | last post by:
Hello, if I get the data from db with sqldatasource-control, how to show this data to an unbound control, so for instance: label1.text=sqldatasourceWHAT-TO-DO-NOW Thanks Barbara
3
2015
by: scott_baird | last post by:
Probably something simple, but it's driving me up the wall... In a report, I have an unbound control that is the total of 2 other bound controls (currency) as follows: unbound control =cash1 + cash2 However, it is possible that either cash1 or cash2 can be null, in which case the unbound control displays nothing (apparently, addition only works with a zero or above). What I want to do is something along
1
5822
by: imtmub | last post by:
Hi All, I have mainpage (POselect.aspx). language VB In that page i have a textbox (txtPOId) and command button(Button1) When i press then button its should send the textbox value to Crystal report and open parameter. I have crystal report (CrystalReport1) that display the matched records what client entered in the textbox from main page. Now my crystal report displaying all the records. but i want to display only specific records. ...
4
13369
by: RachH | last post by:
Is there a way to pass a value to a report via VBA so the value can then be displayed in the report as a concantenation with a string? I have a report that displays all pricings that have occured in one day. I would like to display the pricing date in the report header. However, if there were no pricings for the date being viewed, I return no records so I can't pull the pricing date from my query results and thus want to set it...
0
1121
JAMBAI
by: JAMBAI | last post by:
I am using a OLE unbound Control to Embed the word document in the form load, event like this http://support.microsoft.com/kb/209990 and When i double clicks (In Place activation), the documents gets activated (A WINWORD.EXE process is opened) and i can edit the document and in the button click event i am saving the document like this : http://support.microsoft.com/kb/132003 and I could save the document. But the WINWORD.EXE...
5
1980
by: John McAtee | last post by:
I am using Access 2007. Created a contribution database for a non-profit. Created parameter query that displays contributions for a specified time period using the "Between And " parameter. The query sorts by company then last name. Created a report that uses the query as the data source. Displays data per the query. When I put an unbound control in the Report Footer or Header to count the number of contributions the names get sorted by...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9536
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10245
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10205
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9063
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5458
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.