trying to make a new table from an old one

lipin

Registered User.
Local time
Today, 09:17
Joined
May 21, 2002
Messages
149
I have a table with 5 fields. I am trying to make a new table with a make table query. In the old table there is a field called 'code'. We are changing coding structure and reason codes so I am trying a calculated field called 'new codes' in the new table. What I would like is to somewhere in the query say that if code is "MT" or "NT" or "FC" in the field code then it will be a "MT" in the calculated 'new codes' field.

So my question is how and where do I tell it to evaluate the old code field?
 
You should not put a calculated field in a table. Create it in your queries instead.
 
Type this in the Field: cell of a new column in the query grid:-

New Code: IIf(
Code:
 In ("MT","NT","FC"), "MT", Null)
 

Users who are viewing this thread

Back
Top Bottom