Solved

Need help with a multi-criteria Dlookup

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
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…

760 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

19 Experts available now in Live!

Get 1:1 Help Now