I have a table with service codes W01 Service1 W02 Service 2 etc etc
When I receive orders in one of the fields OrderService will be required service codes in simple code format ie W01,W02,W03 etc
I need to populate 1 Text field against each ordr with all the service requirements ie Service1, Service6, Service5
I believe some form of instr function looping through the OrderService field is required but I am stumpped ! to add to my problem sometimes the same ServiceCode will be repeated but I dont want to repeat the descriptrion
to get ths I have a query
SELECT DISTINCT BulkDel.[ORDER NO], BulkDel.[DEL PLUS CODES] AS ServiceCode, IIf(InStr([Del Plus Codes],[Del]),[Desc],"") AS [SERVICES Desc]
FROM BulkDel, tblDellP
WHERE (((BulkDel.[ORDER NO])="024943190"));
ORDER NO ServiceCode SERVICES Desc
024943190 w01,w02,w20,w05,w06 Evening
024943190 w01,w02,w20,w05,w06 Marci
024943190 w01,w02,w20,w05,w06 Pre 12.00
024943190 w01,w02,w20,w05,w06 Pre-12.00
024943190 w01,w02,w20,w05,w06 Timed
I would like to have this in 1 field ie SERVICES Desc =Evening, Marci, Timed, Pre 12.00
Could any advise best way create a function to produce this?
thanks in advance
When I receive orders in one of the fields OrderService will be required service codes in simple code format ie W01,W02,W03 etc
I need to populate 1 Text field against each ordr with all the service requirements ie Service1, Service6, Service5
I believe some form of instr function looping through the OrderService field is required but I am stumpped ! to add to my problem sometimes the same ServiceCode will be repeated but I dont want to repeat the descriptrion
to get ths I have a query
SELECT DISTINCT BulkDel.[ORDER NO], BulkDel.[DEL PLUS CODES] AS ServiceCode, IIf(InStr([Del Plus Codes],[Del]),[Desc],"") AS [SERVICES Desc]
FROM BulkDel, tblDellP
WHERE (((BulkDel.[ORDER NO])="024943190"));
ORDER NO ServiceCode SERVICES Desc
024943190 w01,w02,w20,w05,w06 Evening
024943190 w01,w02,w20,w05,w06 Marci
024943190 w01,w02,w20,w05,w06 Pre 12.00
024943190 w01,w02,w20,w05,w06 Pre-12.00
024943190 w01,w02,w20,w05,w06 Timed
I would like to have this in 1 field ie SERVICES Desc =Evening, Marci, Timed, Pre 12.00
Could any advise best way create a function to produce this?
thanks in advance