Solved

Need help with a multi-criteria Dlookup

Posted on 2008-10-22
3
166 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
  • 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

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

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
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.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

809 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