So here is my situation:
I am building a form that will be used to track issues requiring action by multiple parties. There are several fields like "So&So Action Needed". Due to privacy act concerns, the table this form directly relates to cannot contain names of the people whose issues these are. Thanks to some crafty people on this forum, I've got a cool combo box set up that checks the ID numbers we use to identify people against a separate table and returns the name for the individual you are looking at. This made my coworkers very happy. However, now I need to do something similar with Access generated emails. My predicament is as follows-
I'm generating emails using the DoCmd.SendObject command once someone updates the "So&So Action Needed" field. I have managed to get text from those "Action Needed" fields into the text of the message (thanks once again to crafty people on this forum). However, now I need to grab that name from the combo box and put it in the email subject. However, when I execute the following code I get an email with the ID number in the subject.
DoCmd.SendObject acSEndNoOBject,,,So&So@blahblah.org,,,"So&So Action Needed for " & Combo90.Value,,True
The combo box has the ID number as it's control source but uses a query that links the number to a name as it's row source. How do I get that name to appear instead of the number?
Follow Up: Does anyone know how to layer in an If Then command such that the SendObject command will use different email addresses depending on some other criteria?
Wow...I know I'm a verbose dude but that's a pretty involved story. Anyway, I'd appreciate any help from fellow code junkies. Thanks!