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
Web Parts Manager
MS Access - dynamically/programaticall<wbr />y creating Pivot Charts using Office Chart component
restricting microsoft outlook users to send maximum mails to users that belong to Global Address List
Undefined Function in Expression in Word 2007 Mail Merge from Access 2007
Speed up big SQL SELECT
Managing multiple Email Addresses
How to use a Dataset in SSIS
Incorrect syntax near '+'
Unable to Sync Outlook Calander Appointments that originat in Google Calander.
how to use rc2 file?