Adding a field to a message body (1 Viewer)

Dan Pope

New member
Local time
Today, 15:57
Joined
Mar 9, 2020
Messages
4
Hi

I'm trying to add a supplier name to the body of my email message.

so far I can get this return

Please find attachment for the discrepancy by 123

But I want 'Company' to display not 'ID'


1583765842319.png


to get the above, this is in the Expression Builder.

="Please find attachment for the discrepancy by " & Nz([Customer],"")

What am I doing wrong?
Please let me know if you need anymore info?
 

theDBguy

I’m here to help
Staff member
Local time
Today, 07:57
Joined
Oct 29, 2018
Messages
21,528
Hi. Are you, by any chance, maybe using a lookup field in your table?
 

Dan Pope

New member
Local time
Today, 15:57
Joined
Mar 9, 2020
Messages
4
Yes. is this my problem? D-Lookup??
 

theDBguy

I’m here to help
Staff member
Local time
Today, 07:57
Joined
Oct 29, 2018
Messages
21,528
Yes. is this my problem? D-Lookup??
Hi. Yes, either that or JOIN the lookup table in your query to have the company name available to your form/code.
 

Dan Pope

New member
Local time
Today, 15:57
Joined
Mar 9, 2020
Messages
4
thank DB fixed it
="Please see Attached Discrepancy for the latest " & DLookUp("[Company]","Customers","[ID]=" & Nz([Customer],0)) & " Shipment"
 

theDBguy

I’m here to help
Staff member
Local time
Today, 07:57
Joined
Oct 29, 2018
Messages
21,528
thank DB fixed it
="Please see Attached Discrepancy for the latest " & DLookUp("[Company]","Customers","[ID]=" & Nz([Customer],0)) & " Shipment"
Congratulations! Glad to hear you got it sorted out. Good luck with your project.
 

Users who are viewing this thread

Top Bottom