I have a text field allowing users to enter custom notes that can be selected from a combo box on a different form (allowing them to use the note over and over without typing it each time).
I want the user to be able to access some field contents in their notes.
For example a user might type this note:
Sent Bob an email to follow up on progress.
I would like them to be able to write a note like this:
Sent [customer] an email to follow up on progress.
so that the [customer] field will be entered.
Here is the code I have:
Code:
Dim temp As String
temp = DLookup("[Note]", "Local_CustomNotes", "[Title] = '" & [cmb_CustomNote].Column(1) & "'")
MsgBox temp
[Text0] = temp
the dlookup will grab the custom note that the user has saved and enter it into the text0 field.
I thought if the user typed something like this:
"Sent " & [customer] & " an email to follow up on progress."
in the custom note area, it could do what I wanted. But instead it looks at all of it as literal string.
Is there an easy way to accomplish this?
Thanks!