I am currently rebuilding one of my databases from scratch due changes in procedures. I felt it would be better to build a new DB from scratch instead of trying to make my current DB fit the new procedures.
With that said I have built my two main tables which have a 1 to 1 relationship. My last DB had about 75 fields and my new DB table would have been more so I broke it into the two tables.
I am using the following formula in my query to combine the First and Last name fields but I get a compile error. This is the same formula which I just copied and pasted from my other DB and then changed the field names.
Last First: IIf(IsNull([ContLastName]),IIf(IsNull([ContFirstName]),[ContCompanyCode],[ContFirstName]),IIf(IsNull([ContFirstName]),[ContLastName],[ContLastName] & ", " & [ContFirstName]))
Here is a screenshot of the error.
Can anyone explain why I am getting this error and how I can correct it?
Thank you for your responses.