Is it possible to have a string with variables stored in a table, then assign that field's content to a variable in vba and have it insert the correct information?
For example, if I store the following in a table:
Code:
"Notice of Receipt: For Review & Comment - " & frmName.Contract_Number.Column(1) & ", " & frmName.Delivery_Task_Order.Column(1) & ", CDRL " & frmName.CDRL_Number.Column(1)
how do I assign it to a variable in vba so that it pulls the data from the form, inserts it into the string, prints correctly, and looks like the string below on the form?
Code:
Notice of Receipt: For Review & Comment - W58RGZ-13-D-0245, T.O. 0007, CDRL A001
I already know that this doesn't work:
Code:
msgSubject = DLookup("Subject", "tblEmailCases", "Case=" & emailCase)
and just outputs the exact string from the table.
TIA
dar