I forgot to mention that this table is updated daily so the values are expected to change - i found an example that appears to be what I need.
Code:
Option Compare Database
Sub CreateCalculatedField()
Dim dbs As DAO.Database
Dim tdf As DAO.TableDef
Dim fld As DAO.Field2
' get the database
Set dbs = CurrentDb()
' create the table
Set tdf = dbs.TableDefs("My_Data")
' create the calculated field: full name
Set fld = tdf.CreateField("Test_Column", dbText, 20)
fld.Expression = "[FirstName] & "" "" & [LastName]"
tdf.Fields.Append fld
' append the table and cleanup
dbs.TableDefs.Append tdf
Cleanup:
Set fld = Nothing
Set tdf = Nothing
Set dbs = Nothing
End Sub
The next guidance I need is how could I start writing my if statement in the fld.Expression section? I just need to see an example and I feel that I can complete this task. Note that I will prob. have 15-18 iif statements.