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
SBS 2008 Error messages
Connecting a remote server (Windows 2000) to a remote main server (Windows 2003 Standard)
dd & flar create : syntax to use with pipe (|), gzip & ssh needed
Auto Compact
ADO connecting to access database - no named arguments
What is the Best Way to Setup Microsoft Access Record Navigation?
OnChange Event (Apply Button) VB.NET
"Target Account Name is Incorrect"
Replace a terminal services server in Windows Server 2003 OS
What is the default Admin password for Access 2003 Workgroups?