Re: DLookUp in a Query
- From: "Ken Snell \(MVP\)" <kthsneisllis9@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 17:43:01 -0400
Post the full SQL statements of the QUERY2 and QUERY1.
--
Ken Snell
<MS ACCESS MVP>
"Martin" <Martin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A6748A75-FDB4-459E-B8CE-E626617A463D@xxxxxxxxxxxxxxxx
I am getting a #Error message in the AMOD field of my query QUERY1:
AMOD: iif(IsNull([MSIZE]),"N/A",DLookUp("MOD","QUERY2","MODID= " &
[MSIZE]))
MSIZE is a lngInt field located in 'Query1'. Sometimes it has a Null
value.
MOD is the value I want to retrieve from QUERY2.
MOD is a field that has the expression MOD:[WIDTH] & " ft x " & [LENGTH] &
"
ft"
However, if I substitute MOD with WIDTH in the DLookUp, it works. But I
need
to have the text result instead of a number.
Any ideas why this doesn't work?
.
- Prev by Date: Re: conditional join?
- Next by Date: Re: Parameter query with Start/End Date problem
- Previous by thread: Re: Finding duplicates, then selecting files with different values
- Next by thread: Re: DLookUp in a Query
- Index(es):
Relevant Pages
|