Help with syntax for passing a field value to a lookup query?
- From: "keithb" <kbrickey@xxxxxxxxxxxxxx>
- Date: Sun, 29 Jan 2006 21:55:37 -0800
I am trying define a lookup field in a table where the values displayed
depend on the content of an adjacent field.
For example:
Lookup Table:
State-------City
AZ--------Phoenix
AZ--------Tempe
CA--------Los angeles
CA--------San Francisco
If the state field in the primary table contains AZ, I want the lookup combo
box to display only Phoenix and Tempe...
What is the correct syntax for passing a value from a field in the primary
table to a lookup query? When I use "[table].[field]" I get a prompt for a
value when the table is opened. When I use "table![field]", the lookup combo
box contains no entries.
I used to know how to do this, but I forgot..
Thanks,
Keith
.
- Follow-Ups:
- Re: Help with syntax for passing a field value to a lookup query?
- From: Duane Hookom
- Re: Help with syntax for passing a field value to a lookup query?
- From: Bob Miller
- Re: Help with syntax for passing a field value to a lookup query?
- Prev by Date: Re: TimeStamp Field in Access Table?
- Next by Date: Re: Primary Keys
- Previous by thread: Link my tables the right way
- Next by thread: Re: Help with syntax for passing a field value to a lookup query?
- Index(es):
Relevant Pages
|