vba - Retrieving numbers from SQL database with dot instead of comma -


I have a macro that extracts information from SQL Server 2005 database. There are some numbers from this information ... In these numbers the decimal part is divided by commas, ",". This is the intention situation, but the numbers on a certain computer are retrieved from "dot". Separate the decimal part.

  set rs = conn.Execute (".......") if not rs.BOF and not rs.EOF then RefNum = rs.Fields (0) if  

How can I change this behavior? I want to separate the numbers "," "decimal part" in all the computers,

if I understand right By the way, you need to ...

  set rs = conn.Execute (".......") if not rs.BOF and not rs.EOF then RefNum  

Otherwise you can use decimal decimal the properties

  Define the separator and apply the application. Decimal separator = "." Application Thousands of ascenders = "" applications. Usesysimaspasparates = False  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -