Microsoft
Software
Hardware
Network
Question : USING A SELECT CASE STATEMENT DEPENDING ON THE LENGTH OF A STRING
Depending upon the length of a string in a certain field I would like the function to return a concatenated result such as If (len(field A =2 ) then Dept# = "9100" & Field A There will be about 4 or 5 scenarios)
Any help with sytax will be appreciated.
Answer : USING A SELECT CASE STATEMENT DEPENDING ON THE LENGTH OF A STRING
Function GetDept(FieldA as string) as string
Select Case Len(FieldA )
Case is = 2
GetDept = "9100" & FieldA
Case is = 3
GetDept = "..." & FieldA
Case else
GetDept = "..." & FieldA
end function
Random Solutions
Find full path of EXCEL.EXE
Installing windows deployment services (WDS) fails
Question on how to read an XML file using re in bash.
Subform: me.dirty not working
server dropped connection without sending the initial greeting
Sharepoint 2007 and Outlook 2003
Trying to delete certain folders on startup.
Help On A Trick SQL Query
How do I get Symantec Ghost to work with these ThinkPad SL500 laptops?
DNS / MX record config problem? Diagnostic-Code: smtp;554 5.7.1 <
[email protected]
>: Relay access denied