Solved

Subject in Dlookup not pulling two values,  need alternative

Posted on 2014-02-06
7
342 Views
Last Modified: 2014-02-19
I tried adding two values for the Dlookup but was told it is not possible.   In my database I need to pull the body text and a subject and put it into a default email.  See the sample.
1.accdb
0
Comment
Question by:lehi52
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39839815
< In my database I need to pull the body text and a subject and put it into a default email>

you need two dlookup() , one for Subject and one for Body Text

where in your db are you doing this?
0
 
LVL 10

Accepted Solution

by:
Gozreh earned 500 total points
ID: 39839829
You should dim a separate verbal for each dlookup.
i showed you this in your previous question.



From all you questions it seems that you should go learn the basic of how to write and use VBA coding.
0
 

Author Comment

by:lehi52
ID: 39839900
You are correct.  I need to learn VBA.  But I really appreciate your help though.  Its really helped me get this up and running.  If I can get this email thing that you've been helping me with working it will be a huge help.  I tried the subject line code and it did not work.   Maybe I am doing something wrong.
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 57
ID: 39839942
and BTW it's not impossible to get Dlookup to return more then one value.

ie.

= Dlookup("[Address] & ';' & [City]","tblCustomers","[CustomerID] = 1")
 
Then do a split on the semi-colon.

Jim.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39839963
yes, if the values you are looking for comes from the same record
0
 

Author Closing Comment

by:lehi52
ID: 39839974
He was right it was answered in my previous post.
0
 
LVL 10

Expert Comment

by:Gozreh
ID: 39839985
he needs one dlookup for subject and one for the body to be entered the the email, so he will need 2 separate dlookup's.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question