Microsoft
Software
Hardware
Network
Question : need to Trim and cast a string as a number
I have a field with a qty and unit of measure expressed as a single string. (eg 25CS or 500SL).
The QTY could be any length, but the Unit of measure is always 2 char at the end. I need this to be a proper number so it can be used in other formaulas
How do I trim off the 2 right characters and cast as a number?
Answer : need to Trim and cast a string as a number
in crystal this would remove the last two chars
Mid ({yourfield},1 ,Length ({yourfield})-2 )
you can convert to number by
cdbl(Mid ({yourfield},1 ,Length ({yourfield})-2 )
)
Random Solutions
Resizing a web Browser inside a acces form
Creating plugins in MS CRM 4.0`
Access - Format datatype in Table to have IP Address format
How do I supress the add new record icon at the bottom of subdata sheets?
Move Files in a .bat file not working but did earlier in the day on windows server 2003
"Pop Chart" style position changes - how to calculate in Excel
Save unbound combobox column value in Access 2007
Link Tables by Date Range in MS Access
Transaction log shipping from SQL 2000 to 2005 - Issue with Database upgrade required
Free Busy information not available to 2007 Outlook clients