I need to code a new field (FieldRep)in my Access database based on the values in another field (Sample). If the value in Sample ends with "R", then FieldRep = "FR"; otherwise FieldRep = "#". But I keep getting the "Syntax Error (Comma) in query expression" message. Can anyone tell me which comma is causing the error (or if I'm missing a comma)?
Here's my query:
Here's an example of how the values in Sample look:
HB13_02
HB13_16
HB13_02R
HB13_16R
Thank you.
Here's my query:
Code:
FieldRep: IIf(Right([Sample],1)="R","FR","#")
HB13_02
HB13_16
HB13_02R
HB13_16R
Thank you.
Comment