RE: Multiple Dlookup issue
- From: "Mauricio Silva" <MauricioSilva@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Apr 2005 14:04:03 -0700
If I understood:
=DLookUp("[LocationZIP]","Locations","[LocationID]=" & [Forms]![Loads]![Stop
Order]![LocationID] & " And [StopNumber]= " & [Forms]![Loads]![Stop
Order]!StopNumber - 1)
"Mike" wrote:
> Hi. Can someone tell me what I am doing wrong in the phrase below? It's
> supposed to find the zip code from a table for the previous stop on that
> load. I'll properly condition the first stop later. I get a blank field in
> the form. This is from the control source in my subform. If I remove the
> last part I get the current zip code. Here's the phrase.
>
> =DLookUp("[LocationZIP]","Locations","[LocationID]=" & [Forms]![Loads]![Stop
> Order]![LocationID] & " And [StopNumber]=-1+ [Forms]![Loads]![Stop
> Order]!StopNumber")
>
> I did -1+... becuase I wasn't sure where to put the quotes around it. Any
> help would be welcome.
>
> Mike
>
>
>
.
- References:
- Multiple Dlookup issue
- From: Mike
- Multiple Dlookup issue
- Prev by Date: Re: Limit entries in dropdown list based upon earlier selection in th.
- Next by Date: SQL server connection to access 2000
- Previous by thread: Multiple Dlookup issue
- Next by thread: Update Table
- Index(es):
Relevant Pages
|