BarryMK
4 strings are enough
- Local time
- Today, 21:39
- Joined
- Oct 15, 2002
- Messages
- 1,350
An email is sent on close of my form. We have three shops (CCCs) and I’m trying to eliminate a line of hard code so the email selects the correct shop name depending on the value of field txtShopID.
The hard code line below works fine and the email is sent using:
strSubject = “New feedback from a customer at CCC No 1"
If I try this:
strSubject = “New feedback from a customer at" & DLookup("[Shop]", ["tblShops"], "[ShopID]= Me.txtShopID")
nothing happens, no error message just no email. I have a feeling it’s the link to the form field I’ve got wrong.
The hard code line below works fine and the email is sent using:
strSubject = “New feedback from a customer at CCC No 1"
If I try this:
strSubject = “New feedback from a customer at" & DLookup("[Shop]", ["tblShops"], "[ShopID]= Me.txtShopID")
nothing happens, no error message just no email. I have a feeling it’s the link to the form field I’ve got wrong.
Last edited: