I have a column with numbers in the following format:
B000000000
C000000000
D000000000
etc etc
What I would like to do is to query this column to see whether the record starts with a particular letter and if so fill in the blank column available with a value.
So if the field starts with: A, H, J or K then the value in the spare column is "EAS"
Or if the field starts with: B, C, D, E, F, or G then the value in the spare column is "WES"
I've tried adding the module to the query and used the following code but I'm getting nowhere...
If [ReferenceField] Like "A*" Or "H*" Or "J*" Or "K*" Then
[SpareField] = EAS
ElseIf firstletter Like "B*" Or "C*" Or "D*" Or "E*" Or "F*" Or "G*" Then
[SpareField] = WES
End If
Does anyone have any suggestions please... thanks...
B000000000
C000000000
D000000000
etc etc
What I would like to do is to query this column to see whether the record starts with a particular letter and if so fill in the blank column available with a value.
So if the field starts with: A, H, J or K then the value in the spare column is "EAS"
Or if the field starts with: B, C, D, E, F, or G then the value in the spare column is "WES"
I've tried adding the module to the query and used the following code but I'm getting nowhere...
If [ReferenceField] Like "A*" Or "H*" Or "J*" Or "K*" Then
[SpareField] = EAS
ElseIf firstletter Like "B*" Or "C*" Or "D*" Or "E*" Or "F*" Or "G*" Then
[SpareField] = WES
End If
Does anyone have any suggestions please... thanks...