Ask a Question related to Microsoft Access, Design and Development.
-
Sergey Bogdanov #1
Re: Format double
Thank you Emilia for your help. Now it works perfectly :)
"Emilia Maxim" <Info@maxim-Software-Service.de> wrote in message
news:d94thvojrbg8bjv37ra1r258eo54tcug17@4ax.com..."123123.325"> "Sergey Bogdanov" <des@softex.lv> wrote:
>> >Hello,
> >
> >I've written the following code to convert my "123123,325" tosolution?> >(dot-separated).
> >
> >Format(NumberCtrl.Value, ".") // still ","
> >Format(NumberCtrl.Value, "#.######") // still ","
> >
> >I suppose that I should set correct mask, but what about universalbut> >The doubles could contain different number of digits after the dot...
> >
> >I've tried to fix it with Replace(NumberCtrl.Value, ",", "."). It works,it> >I'm not sure that it's correct solution.
> >
> >I want to use this double in the SQL statement:
> >"UPDATE table SET a = " & mydouble & " WHERE b = 1", but instead of ".">> >uses culture-formatted doubles with "," as fraction delimeter:
> >"UPDATE table SET a = 222,1222 WHERE b = 1", must be
> >"UPDATE table SET a = 222.1222 WHERE b = 1"
> Sergey,
>
> you can use the built in function BuildCriteria. It is meant to
> construct SQL criteria:
>
> BuildCriteria("a", dbDouble, NumberCtrl)
>
> returns the string:
>
> "a = 222.1222"
>
> if NumberCtlr contains 222,1222
> If you don't specify the comparison operator it uses '=', otherwise
> you could write:
>
> BuildCriteria("a", dbDouble, "<=" & NumberCtrl)
> which gives:
> "a <= 222.1222"
>
> See also Help on BuildCriteria for detailed explanation.
>
> Best regards
> Emilia
>
> Emilia Maxim
> PC-SoftwareService, Stuttgart
> [url]http://www.maxim-software-service.de[/url]
Sergey Bogdanov Guest
-
Format Double Values using BoundColumn.DataFormatString
Hi, I have a Double Value. i am planning to display it in "0.0000" format i.e. the decimals length is fixed i.e. 4. I am using math.round... -
Placing an image in a Tab Fixed format without messing up the format??
I will do my best to explain the problem. First of all, this is an XP machine and I am using CS InDesign (the version of InDesign that one can... -
double-sided printing in landscape format
How to print a double-sided landscape format document? Having a problem where the even numbered pages are printing upside-down on the backs of the... -
Double log on
The double log on here is a nuisance. The first log on accomplishes nothing but delay. Bob -
format number into currency format ($1,000,000.00)
SELECT '$' + CONVERT(VARCHAR, CONVERT(MONEY, 1000000), 1) "lamP" <phantlam@yahoo.com> wrote in message...



Reply With Quote

