G
Guest
I have a need to do DDE to do a number of Insert and Update statements (via
SQL) with a program that's provided to multiple countries, some of whom use
different number formats than I do (english version, USA).
Specifically, they would use 1.000,05 for $1,000.05...
When i do DDL with an actual comma in it, this messes the SQL syntax up...
What i've been TRYING to do is use a format(number,format) statement, like
this:
Code:
--------------------------------------------------------------------------------
UpdateSQL = "UPDATE SalesInfo SET SalesRating = " & format(AvgMark, "0.0")
& ", NumSales= " & NumSales & _ " WHERE SalesID= "
& rstSalesResults!fk_Sales_ID
--------------------------------------------------------------------------------
Actually this doesn't even work.
Format with "0.0" still gives 0,0 as the string, it nationalizes that.
Any thoughts on how i can do this? I could probably use two statements in
this specific example, but i have many other examples where i have an insert
with a number of columns, and that wouldn't work there.
SQL) with a program that's provided to multiple countries, some of whom use
different number formats than I do (english version, USA).
Specifically, they would use 1.000,05 for $1,000.05...
When i do DDL with an actual comma in it, this messes the SQL syntax up...
What i've been TRYING to do is use a format(number,format) statement, like
this:
Code:
--------------------------------------------------------------------------------
UpdateSQL = "UPDATE SalesInfo SET SalesRating = " & format(AvgMark, "0.0")
& ", NumSales= " & NumSales & _ " WHERE SalesID= "
& rstSalesResults!fk_Sales_ID
--------------------------------------------------------------------------------
Actually this doesn't even work.
Format with "0.0" still gives 0,0 as the string, it nationalizes that.
Any thoughts on how i can do this? I could probably use two statements in
this specific example, but i have many other examples where i have an insert
with a number of columns, and that wouldn't work there.