Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
how to cast in a select
Hi
Using C# i try to select from an excel file, to insert it into a datagridview and it works perfectly. But I would like have some of the columns to have 2 or 3 decimals. The data in the excel file is e.g 88,7 but I would like it in the datagridview to show as 88,700. I tried to do a cdec as in the following select: SELECT [Navn] AS [Produkt], cdec([13]) AS [vand] FROM [FDB7.01$] But that returns the error: Wrong number of arguments used with function in query expression 'cdec([13]'. What am I doing wrong? or is there a better way? Thanks Kim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Unable to cast com object (interop) | Excel Discussion (Misc queries) | |||
CAST Function | Excel Discussion (Misc queries) | |||
how to cast a Range value to a Date value? | Excel Programming | |||
Help with MSQuery & CAST function | Excel Programming | |||
Need to cast OleObject to CombBbox | Excel Programming |