Solved

Subject in Dlookup not pulling two values,  need alternative

Posted on 2014-02-06
7
338 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 119

Expert Comment

by:Rey Obrero
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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 119

Expert Comment

by:Rey Obrero
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now