I'm trying to create a calculated filed in a query that sets the the turnaround time agreed with a client for design information. This is based on the contents of another field which happens to be [Disipline Code].
All [Disipline Code] data is in the same format eg A51, C69 etc.
We need to state in the calculated field that where the [Disipline Code] is a 50 series ie *5*, the turnaround time = 20 otherwise 10.
I've trued the IIF function and it works great if the criterie for [Disipline Code] is absolute eg:
IIf([tbl_document_details]![Discipline Code]="A57",20,10) ... no problem.
But if I try and wildcard the criteria eg:
IIf([tbl_document_details]![Discipline Code]="*5*",20,10) it sets all the data to the FALSE part.
Is there any way to structure the wildcard to get this to work??
All [Disipline Code] data is in the same format eg A51, C69 etc.
We need to state in the calculated field that where the [Disipline Code] is a 50 series ie *5*, the turnaround time = 20 otherwise 10.
I've trued the IIF function and it works great if the criterie for [Disipline Code] is absolute eg:
IIf([tbl_document_details]![Discipline Code]="A57",20,10) ... no problem.
But if I try and wildcard the criteria eg:
IIf([tbl_document_details]![Discipline Code]="*5*",20,10) it sets all the data to the FALSE part.
Is there any way to structure the wildcard to get this to work??