Does anyone know how to format a number with commas/decimal when using command "Database: Read from database using SQL statement..." when using Excel as the database?
Purpose:
I’m connecting to an Excel spreadsheet as a database, looping through each row and saving the data into variables that will be used to populate a contract.
Problem:
I’m having a hard time formatting the Annual Salary field from my Excel file into my $vAnnualSalary$ variable.
This is my SELECT statement:
SELECT >Employee First Name], rEmployee Last Name], asAnnual Salary] from lSheet1$$]
Though the Annual Salary field is formatted correctly on the Excel spreadsheet (numerical formatting with commas and decimals, no currency symbol), the value that is saved to my $vAnnualSalary$ variable (after the SQL command is executed) doesn’t contain any formatting (which I guess is expected with SQL).
Does anyone know how I can apply numerical formatting to the Annual Salary so that it contains commas and a decimal?
Ex: Excel value on spreadsheet: 50,000.00
Value returned from SELECT statement: 50000
Value as I need it displayed in my $vAnnualSalary$ variable: 50,000.00
Thank you