G
Guest
I have a query that contains the following text field
SOIntColorCode is a text field with the value M-05-5B-5F
I have defined a temporary field to extract the value 5B
IntColorA: Mid([SOIntColorCode],InStr(3,[SOIntColorCode],"-")+1,2)
produces the value 5B
I am trying to use the temporary field to lookup a value in a table.
I tried
IntColor1: DLookUp("IntColor","InteriorColorCodes","IntColorID =
[IntColorA]")
I get an error saying that Access can not find IntColorA
I tried
IntColor1: DLookUp("IntColor","InteriorColorCodes","IntColorID =
Mid([SOIntColorCode],InStr(3,[SOIntColorCode],"-")+1,2)")
I get a data type mismatch error
Help
SOIntColorCode is a text field with the value M-05-5B-5F
I have defined a temporary field to extract the value 5B
IntColorA: Mid([SOIntColorCode],InStr(3,[SOIntColorCode],"-")+1,2)
produces the value 5B
I am trying to use the temporary field to lookup a value in a table.
I tried
IntColor1: DLookUp("IntColor","InteriorColorCodes","IntColorID =
[IntColorA]")
I get an error saying that Access can not find IntColorA
I tried
IntColor1: DLookUp("IntColor","InteriorColorCodes","IntColorID =
Mid([SOIntColorCode],InStr(3,[SOIntColorCode],"-")+1,2)")
I get a data type mismatch error
Help