I'm trying to format the text box properties based off an expression, I have a field 'currencyID' and I'm trying to get it to change from £ to € if the value doesn't equal 1. So far I've got this but I am terrible at SSRS Expressions...
=IIF(Fields!currencyID.Value = 1, '£'#,0.00;('£'#,0.00), '€'#,0.00;('€'#,0.00))
This is to save having a report for UK clients and a separate report for Irish clients.
Any help would be greatly appreciated. Thank you.
Related
I am attempting to create a tabular form in Access that lists the date and week number for each record. When I use the Format option in the textbox property sheet (ww), my weeks are off by 1 week (the week of Dec. 19, 2021 is considered week 52). I have been able to correct this in an unbound field in the header using VBA
DatePart("ww", Date, vbSunday, vbFirstFourDays)
but I can't get the same code to work in the textbox Control Source for the tabular form. I can get the same wrong week 52 answer using:
=DatePart("ww", [dtmEventStartDate])
but both of the following give me a "#Name?" error in the text box when the form loads:
=DatePart("ww",[dtmEventStartDate],[vbSunday],[vbFirstFourDays])
=Format([dtmEventStartDate],[ww],[vbSunday],[vbFirstFourDays])
Oddly, the pop-up help for the Control Source seems to indicate that the format I am using is supported, but then it proceeds to not work. Any help would be greatly appreciated!
Access doesn't know about VBA constants like vbSunday, vbFirstFourDays and makes assumption these are field names.
Use the number values. =DatePart("ww", [dtmEventStartDate], 1, 2)
I have a report that shows an opening balance. If the balance is zero then I want to the number format #,0.00 to display as 0.00. However, if there is a credit then I want the number format #,0.00 C to display as, for example 123.45 c
I'm thinking it's some kind of Switch expression but for the life of me can't get it working.
Thanks in advance.
Set the format property to the expression below
="#,0.00;#,0.00c;0.00"
I have great difficulty getting the last finished on the report im building. It has to show a value, a currency value. the only problem, which is a small one, is that the report builder is showing a ',' as a 1000 seperator but i need it to show a '.' instead, for example:
right now it shows:
12,345,678.00
i need it to show:
12.345.678,00
I have read a lot of questions in here and tried out this code:
= (new Decimal(11123.55)).ToString("€#,0.00;(€#,0.00)",
new System.Globalization.CultureInfo("es-ES"))
But that aint working as well, then it outputs this in the report:
€11853724112355
I am all out of ideas now.
Thank you in advance
You should leave the value of the cell as numeric because this is better in certain instances, for example, exporting to Excel. Generally, data and presentation should be separated.
Your report probably has the Language property set to en-US. Set it to es-ES and set the Format property of the cell to C and it should display properly.
For one of my Matrix reports, the column headers are Dates which I am trying to format in the form of 'Mon 07' i.e. short date name followed by date value.
For this I am using the expression - =Format(CDate(Fields!WorkedOnDate.Value),"ddd")
I then wanted to trim the right 3 letters.
I am getting weird output.
Here is what I am getting for one week-
Tue, We2, T12u,ri,SaA,Sun,7on
Any idea what is going wrong?
This was asked in this link but that answer didn't help -
The date formats do not seem to work in SSRS
I realize my mistake now. I was adding the Format property across Number-> Format property of that textbox. I solved this by adding as part of the textbox Property value.
I'm using Access 2007.
I'm struggling to produce a report in a specific format. The style of the report is a crosstab, but I wish to replace the summary values with text.
Examples of the styles of report can be seen here
.
I can reproduce the report (nearly), but in a CrossTab, instead of the text for each of the levels, I have a summary value, which in my query is always 'one' for the count of the text values :)
How can I produce a report like this within Access??
Any help/pointers will be gratefully received.