N
Nick X
Hello,
Expr1: DLookUp("[txtDesc]","tbl15702UT","[txtDesc]=" &
[tblUTFIELDCODES]![FCODE])
I need to evaluate a field (txtDesc) look up the value in another table
(tblUTFIELDCODES) and replace that value in 15702UT with the associated text
value. eg: txtDesc = 409, FCODE = 409, FDESC = STM MH; replace txtDesc with
FDESC.
txtDesc is the following expression not an actual field in a table: txtDesc:
Left([Desc],+3)
Thank you for your help,
Nick
PS: I also tried this but Access said the expression was to complex-
Switch(txtDesc=503,"SAN MH",txtDesc=506,"SAN
LH",txtDesc=401,"ACB",txtDesc=402,"BCB",txtDesc=403,"CCB",txtDesc=404,"DCB",txtDesc=405,"ECB",txtDesc=406,"Single
ECB",txtDesc=408,"Open Top MH",txtDesc=409,"STM MH",txtDesc=412,"Strip Trench
Drain",txtDesc=413,"Curb Inlet",txtDesc=414,"ODOT CB3",txtDesc=415,"ODOT
CB3A",txtDesc=319,"WV")
Expr1: DLookUp("[txtDesc]","tbl15702UT","[txtDesc]=" &
[tblUTFIELDCODES]![FCODE])
I need to evaluate a field (txtDesc) look up the value in another table
(tblUTFIELDCODES) and replace that value in 15702UT with the associated text
value. eg: txtDesc = 409, FCODE = 409, FDESC = STM MH; replace txtDesc with
FDESC.
txtDesc is the following expression not an actual field in a table: txtDesc:
Left([Desc],+3)
Thank you for your help,
Nick
PS: I also tried this but Access said the expression was to complex-
Switch(txtDesc=503,"SAN MH",txtDesc=506,"SAN
LH",txtDesc=401,"ACB",txtDesc=402,"BCB",txtDesc=403,"CCB",txtDesc=404,"DCB",txtDesc=405,"ECB",txtDesc=406,"Single
ECB",txtDesc=408,"Open Top MH",txtDesc=409,"STM MH",txtDesc=412,"Strip Trench
Drain",txtDesc=413,"Curb Inlet",txtDesc=414,"ODOT CB3",txtDesc=415,"ODOT
CB3A",txtDesc=319,"WV")