On one of my forms, I have a macro-enabled button called "Submit Report" which generates and sends an email via Outlook on-click. The code for the body of the email is as follows:
=IIf([Form].[Description].[TextFormat]=1,PlainText([Description] & "Reported by: " & [Reported by]),[Description] & " Reported by: " & [Reported by])
Now I tested the email and "Reported by" populates the auto number instead of the actual employee name. How can I change the code where it populates the employee name?
"Reported by" row source is: SELECT [Contacts Extended].ID, [Contacts Extended].[Group Name] FROM [Contacts Extended] ORDER BY [Contacts Extended].[Group Name] (a query)
Form record source is: Task (a table)
Any help would be much appreciated!