D Look Up

  • Thread starter Thread starter Antonio
  • Start date Start date
A

Antonio

Can the DLookUp function be used with a query vice a
table? I created the following expression:

DLookUp("[Status]","tblAttendance","[MemberID] ='" &
[UserID] & "' And [Date] = #3/18/2004#"

However, when I substitute the target "tblAttendance" for
a query called "qryAttendance", which pulls info from the
same table, but specifies an individual department
member...I get the #Error in the text box the expression
is loaded in.

Is it just not possible to use a query with DLookUp? I
was hoping that using a query vice a table (table has
about 2000 records) it would speed up the process.
 
Antonio said:
Can the DLookUp function be used with a query vice a
table? I created the following expression:

DLookUp("[Status]","tblAttendance","[MemberID] ='" &
[UserID] & "' And [Date] = #3/18/2004#"

However, when I substitute the target "tblAttendance" for
a query called "qryAttendance", which pulls info from the
same table, but specifies an individual department
member...I get the #Error in the text box the expression
is loaded in.

Is it just not possible to use a query with DLookUp? I
was hoping that using a query vice a table (table has
about 2000 records) it would speed up the process.

There is something else wrong with your expression. Dlookup works just fine
against saved queries.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DLookup and Nz 0
Formating Issue in a Query 1
Looking up a value in a query 1
using dlookup in a query 2
DLookup on two criteria 3
Listbox question 1
Listbox questions 2
Query Expression Error 9

Back
Top