R
rama
Hello
In my database there is a table called tblImport, which is imported to
database from MS Excel. This tblImport is having some fields called
"JobNo", "Status" etc. JobNo field contains unique data where as
Status field contains data which are separated by a space. What I wish
to do is to extract a substring from "STATUS" and get the result in
the final status. In excel with nested IF I can get the result as
below
IF(ISNUMBER(SEARCH("PCNF",A3)),"PCNF",IF(ISNUMBER(SEARCH
("CNF",A3)),"CNF",IF(ISNUMBER(SEARCH("REL",A3)),"REL",IF(ISNUMBER
(SEARCH("CRTD",A3)),"CRTD"))))
STATUS FINAL_STATUS
REL PCNF NMAT PPRT PRC SETC PCNF
REL NMAT PRC SETC REL
REL CNF NMAT PRC SETC CNF
REL PRT GMPS MACM PRC SETC REL
CRTD PRC CRTD
How to do it with the help of a access query.
Thanks in advance
Rama
In my database there is a table called tblImport, which is imported to
database from MS Excel. This tblImport is having some fields called
"JobNo", "Status" etc. JobNo field contains unique data where as
Status field contains data which are separated by a space. What I wish
to do is to extract a substring from "STATUS" and get the result in
the final status. In excel with nested IF I can get the result as
below
IF(ISNUMBER(SEARCH("PCNF",A3)),"PCNF",IF(ISNUMBER(SEARCH
("CNF",A3)),"CNF",IF(ISNUMBER(SEARCH("REL",A3)),"REL",IF(ISNUMBER
(SEARCH("CRTD",A3)),"CRTD"))))
STATUS FINAL_STATUS
REL PCNF NMAT PPRT PRC SETC PCNF
REL NMAT PRC SETC REL
REL CNF NMAT PRC SETC CNF
REL PRT GMPS MACM PRC SETC REL
CRTD PRC CRTD
How to do it with the help of a access query.
Thanks in advance
Rama