?
Solved

Need help with a multi-criteria Dlookup

Posted on 2008-10-22
3
Medium Priority
?
172 Views
Last Modified: 2013-11-27
I need to change the following:
Nz(DMax("[RFI_LN_NBR]", "[T_VMAC1_RFI_LINES]", "[RFI_PROJECT_IDENTITY_FIELD] = Forms![F_REQUEST_CONTACTS]![t_REQUEST_PHASE_ID] "), 0) + 1



To include the field "[RFI_SEQUENCE_NBR] = ME.T_RFI_NBR"  which is numeric.

How do I incorporate both criteria items into the DMax?  Thanks.
0
Comment
Question by:snyperj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 75
ID: 22779984
try this:

Nz(DMax("[RFI_LN_NBR]", "[T_VMAC1_RFI_LINES]", "[RFI_PROJECT_IDENTITY_FIELD] = Forms![F_REQUEST_CONTACTS]![t_REQUEST_PHASE_ID] "  AND [RFI_SEQUENCE_NBR] = " & ME.T_RFI_NBR"       ), 0) + 1

mx
0
 
LVL 93

Accepted Solution

by:
Patrick Matthews earned 2000 total points
ID: 22780017
Nz(DMax("[RFI_LN_NBR]", "[T_VMAC1_RFI_LINES]", "[RFI_PROJECT_IDENTITY_FIELD] = " & Forms![F_REQUEST_CONTACTS]![t_REQUEST_PHASE_ID] & " And [RFI_SEQUENCE_NBR] = " & ME.T_RFI_NBR), 0) + 1
0
 
LVL 75
ID: 22780071
oops .... I left out the &

oh well ...
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
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…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

770 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