Solved

Need help with a multi-criteria Dlookup

Posted on 2008-10-22
3
169 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 92

Accepted Solution

by:
Patrick Matthews earned 500 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access lists formating 8 49
SQL Server 2012 to SQL Server 2016 24 54
Microsoft Access 32-bit or 64-bit? 11 58
2 Global Vars, 1 List Box 4 31
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
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…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

732 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