Remove currency symbol from column SSDBGrid - vb6

I have an SSDBGrid with a column that is displaying values in a table with a data type of Currency. Therefore, this column shows values with a £ symbol in front of them - e.g. £10, rather than 10.
I've had a look at the properties of the columns, but I can't work out which one will allow me to remove the currency symbol?
I've tried
With grdList
.Columns(2).CellStyleSet = "0.##"
End With
But that made no difference. I can't see any other properties that would allow me do this? How can it be done?

Related

Spotfire data format from Oracle database

I am pulling data from an Oracle database into Spotfire. For some reason, Spotfire formats all numbers as currency with 2 decimals. In my data sets there are a significant number of columns that should be integers. Having them come in as currency doesn't cause any calculation issues that I've found, but it is a formatting issue when columns that obviously should not have decimals are displaced with them.
I have tried using the CAST AS SMALLINT, INTEGER, and also ROUND in my SQL statements to try and get rid of the decimal places. So far, they have all been unsuccessful.
Any ideas on how I can get Spotfire to import numbers with the desired format, or am I going to have to manually change them after they are imported?
Below is an example of some of the functions I have tried.
> SELECT
>
> NAME,
>
> CAST(X_ID AS SMALLINT) X_ID,
>
> CAST(Y_ID AS INTEGER) Y_ID,
>
> ROUND(Z_ID,0) AS Z_ID,
>
> FROM TABLE
Thanks
Spotfire is importing It to the largest most precise data type needed. If you want to display it differently then simply go to Edit > Column Properties, click on the column in question and change the format. You can also do this for each individual chart if you don’t want to make a global change

SSRS alternate row colors with column groups

I have reports in SSRS where I'm able to alternate the row colors using this expression:
=IIF(ROWNUMBER(NOTHING) MOD 2, "LightSteelBlue","WhiteSmoke")
This works great. However, I have a report that has a column grouping, and this seems to mess up the alternating row colors.
The grouped columns will alternate column colors instead of row colors. I've searched and found possible solutions with row groupings but nothing with column groupings, or at least nothing I can get to work. I'm just trying to have every other row be "LightSteelBlue" or "WhiteSmoke," nothing fancy.
Any ideas?
Here is the solution that I came up with:
Add a column to the right end of the table and name the text box "RowNumber." Set the visibility to Hidden.
Add expression to RowNumber text box.
=RunningValue(Fields!last_name.Value & Fields!entity_name.Value, CountDistinct, "dataset name")
Add expression to Background Color of the Details Row:
=IIF(ReportItems!RowNumber.Value mod 2 > 0, "LightSteelBlue", "WhiteSmoke")
The RunningValue() function needs unique values. In my case the member name can be repeated several times due to one member belonging to different entities. Therefore I combined last_name and entity_name to get a unique value.
Hope this helps.
Try using runningvalue instead of rownumber where the field name is the field in your details row:
=iif(VAL(runningvalue(fields!yourfield.Value,countdistinct,nothing)) MOD 2, "LightBlueSteel", "WhiteSmoke")

MS Access Custom Formatting: Currency in K

I am trying to create an appropriate Format table property of a specific MS Access table in order to achieve the display style described below. For example purposes, let the table name be example and the field that I am trying to format be dollars
When example!dollars.Value is 567.98, I wish to display $0.567K. I also wish to display 1,000.42 as $1.000K.
In another table storing larger values, I use the Format property string $#,##0,\K; ($#,##0,"K)"[Red];"| < $1K |"; --, which successfully displays the amount in K dollars; however, any values less than $1K cannot be displayed. This is not acceptable due to the scale of the values in the example table.
The most intuitive solution is to use the string $0,000\K and specify the thousands separator as . instead of ,. However, I do not know how to do this.
Any advice will be greatly appreciated!
This works for me:
Kamount = Format(Amount/1000, "$0.000K")
So divide by 1000, then format as needed.
Use the Format property string $0\.000\K

How do you show all rows with missing fields in Crystal Reports?

I'm struggling with Crystal Reports suppressing rows whenever I add a field that some rows may not have data in.
I've been able to fix some of the rows and make them show by using the formula:
if not isnull({field}) then {field} else "Arbitrary string to make row display"
This at least fills in the absent field with something and displays the row.
Do I really have to try and identify every field that may have incomplete data for some rows? Or is there some global method to make all rows show no matter what?
Something like: If isnull(ANYTHING) then " "?
you can do right click on the field, then under suppress, click the formula icon beside it and you can input there the conditions.
You can try the following in report options:
Convert Database NULL values to Default
Convert Other NULL values to Default.
This is hidden in File > Report Options. I have used Convert Database NULL Values to default to show 0's instead of blanks for null valued summaries

Queries with NSValueTransformer

1.In my application there is a requirement to display certain value (among the 3 different values) in each row of the table column,the value to be displayed in each row can be decided by checking the values of two different model key paths.
This i tried to implement using bindings,where i used "Display pattern Value1 with one key path and custom value transformer class" and "Display pattern Value2 with other key path and same value transformer".But i am not getting desired output value from the transformer class.Can anyone please help me in resolving this issue.
2.In the other application there is a table view with 3 columns,where the first column displays the complete word,second column displays the prefix of that word and the third column displays the suffix of that word.
I implemented this requirement using bindings and two custom value transformer classes.One for getting the prefix of the word(prefixExtractor) and the other for getting the suffix of the word(suffixExtractor).Can anyone suggest me how can i implement this requirement using only one custom value transformer class so that it optimizes my code.
Thanks in advance.

Resources