Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UnConcatenate. 1

Status
Not open for further replies.

lars7

Technical User
Aug 16, 2005
817
GB


Hi there,
I got the following "IIf statement" to concatenate fields in my query from someone here but now I need to reverse it and seperate the fields can anyone help me:


Code: [jd code no] & IIf(IsNull([jd addit no]),"","/" & [jd addit no])
 
jd code no :iif(InStr(1, Code , "/")>0, Left(Code, InStr(1, Code , "\")-1), Code)
jd addit no:iif(InStr(1, Code , "/")>0, Mid(Code, InStr(1, Code , "/")+1), "")
 
Hi jerry,
I went on holiday for a few days after I posted this and forgot all about it untill I needed something similair today. Thanks it worked great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top