GohDiamond
"Access- Imagineer that!"
- Local time
- Today, 00:18
- Joined
- Nov 1, 2006
- Messages
- 550
This is primarily for my own benefit so I won't lose the knowledge.
To convert a number to a string in MS Access SQL:
NumbertoText: Cstr([Your Numeric Field])
If the Number is masked(Formatted) and you want to preseve the format
Take for example a % between 0% and 100%
Convert Percentage to a String(Text)
NumbertoText: CStr(Format([% Numeric Field],"#" & "%")) for no decimal % or CStr(Format([% Numeric Field],"Percent")) for standard 2 decimal %
CStr(Format(1,"#" & "%")) = 100%
CStr(Format(1,"Percent")) = 100.00%
If this helps anyone, yw
Cheers!
Goh
To convert a number to a string in MS Access SQL:
NumbertoText: Cstr([Your Numeric Field])
If the Number is masked(Formatted) and you want to preseve the format
Take for example a % between 0% and 100%
Convert Percentage to a String(Text)
NumbertoText: CStr(Format([% Numeric Field],"#" & "%")) for no decimal % or CStr(Format([% Numeric Field],"Percent")) for standard 2 decimal %
CStr(Format(1,"#" & "%")) = 100%
CStr(Format(1,"Percent")) = 100.00%
If this helps anyone, yw
Cheers!
Goh