Programmably set currency format to field in access 2010 form? - forms

I have an access 2010 table with order line detail which includes a field with the price and a separate field for the currency type. That currency type field currently only supports "USD" or "EUR". When the record is shown on a form, I'd like to have the price field format automatically use either Currency or Euro (in design view this can be set manually via property sheet) based on the currency type field. How is that done?
Thank You.

Format will do that, either set as property of a textbox ("Currency") or by an expression:
=Format(123.45, "Currency")

Related

MS Access - storing calculated field from a form in a table

I have a textbox in a form that I created.
I want to add an expression in the textbox's Control Source property. I also want to bind the textbox to a field in the table using Control Source propety of the textbox.
Is there any way I can add a field name and an expression in the control source property of a particular textbox?
The expression sums up the total amount a customer must pay based on the price and amount.
I tried solving this problem by looking at solutions on stackoverflow from people with the same problem but that didnt work for me either.
I know that storing calculated fields is bad, but I have to do it.

SAP Crystal Report - How to override default formating for number and currency field in formula

I am using tonumber function but its adding default formatting and i don't want that mainly thousand separator.
Also, for currency, I don't want currency symbol.
As I am using these fields in formula field, I cannot set properties, right?
To remove the thousand separator, I generally do something like
Replace(ToText(YourField),',','')
To remove currency symbols do the same
Replace(ToText(YourField),'£','')

Visibility expression error in ssrs 2008 table column

Dears,
I have a table that is grouped by Currency, and when i export to excel it splited into sheets based on Currency Grouping and each sheet has Currency Name.
i need to set Visibility Expression to last 2 columns to be hidden if the currency is USD.
ive tried
=IIF(Fields!Currency1.Value="USD",True,False)but all sheets are hidden
ive tried
=IIF(Globals!PageName="USD",True,False)it gave me error global variables can only be used in headers and footers.
also
=IIF(First(ReportItems!Claim_Currency.Value)="USD",True,False)also error.
can any one advise ,
Regards,
Instead of dataset Field Values use Parameter values to show or hide.
For eg:
=IIF(INSTR(Join(Parameters!Currency.Value,","),"USD")=0,True,False)

Crystal Report - unable to use TEXT type as a parameter?

I am currently developing a website, asp.net 4.0 using crystal reports, I can view the report perfectly etc, however when trying to create parameters in the report I am unable to select or even view TEXT type fields in my database table when selecting a field to create the parameter from. Selecting string or integers etc work fine, but all TEXT type fields arent even visible.
Any ideas as to why this may be? I need to add a parameter from a TEXT field as we want to limit the results to all messages which contain a certain phraze, and that message is stored in a sql database as a TEXT type.
You have to convert Text type into varchar(max) and then it will be show.
Otherwise you have to add Custom Parameter field and read this value into the parameter and this parameter will drag on your report design page.
You will need to create a parameter that is a 'String' type.
Next, cast your TEXT value to different type using a SQL Expression:
//{%converted_text}
(
cast( TEXT AS varchar2(255) )
)
You may need to adjust the syntax (I'm using Oracle's).
Finally, reference each in the record-selection formula:
{%converted_text} = {?text_prompt}

How to restrict the date selected

How to disable dates greater than today in a DateEdit control in an AX form?
Is possible with a date extended data type?
It is not possible to restrict date ranges on the extended data type level.
You will have to validate the entered date.
The method where to validate (preferred method first):
validateField on table
validateWrite on table (if comparing two entered dates)
validate on form field
validate on form control
Also see method sequence.