N Novice1 Registered User. Local time Today, 10:29 Joined Mar 9, 2004 Messages 385 Feb 11, 2016 #1 I know how to use the DLookUp function in a report ... =DLookUp("HeaderLine1","tblLetterHead","LetterheadID = 1") Can I use with SendObject? I add the code (without = ) without success. Any suggestions?
I know how to use the DLookUp function in a report ... =DLookUp("HeaderLine1","tblLetterHead","LetterheadID = 1") Can I use with SendObject? I add the code (without = ) without success. Any suggestions?
N Novice1 Registered User. Local time Today, 10:29 Joined Mar 9, 2004 Messages 385 Feb 12, 2016 #2 Assign a variant Dim varX As Variant varX = DLookup("ReturnEmail", "tblCritiques", "CritiqueID = 1")
pbaldy Wino Moderator Staff member Local time Today, 10:29 Joined Aug 30, 2003 Messages 36,272 Feb 12, 2016 #3 Looks like you got it? You'd use that variable in SendObject.