using iif to control contents of dropdown

G

Guest

hey everyone, I have a distribution table which lists company and name. i
have a datasheet that shows all fields from this table. the Company and Name
fields are setup as combo boxes, which contain all distinct entries from this
table. what i want is, if someone selects a name, i want the company box to
ONLY display the companies for which the name matches (ie Nick might be
listed as being in Company A B and H but not D E or L)
i'm trying to use an iif statement in the Query builder, as such:
iif([name] is null,"",[name])
it's not working, however... i'm not getting ANYTHING.
PLease help!!
 
G

Guest

Thanks so much!! That was perfect, and also gave me a ton more examples for
other problems!!

Duane Hookom said:
Roger Carlson has a sample/demo of creating cascading combo boxes at
http://www.rogersaccesslibrary.com/TableOfContents3.asp#C.
--
Duane Hookom
Microsoft Access MVP


aft3rgl0w said:
hey everyone, I have a distribution table which lists company and name. i
have a datasheet that shows all fields from this table. the Company and Name
fields are setup as combo boxes, which contain all distinct entries from this
table. what i want is, if someone selects a name, i want the company box to
ONLY display the companies for which the name matches (ie Nick might be
listed as being in Company A B and H but not D E or L)
i'm trying to use an iif statement in the Query builder, as such:
iif([name] is null,"",[name])
it's not working, however... i'm not getting ANYTHING.
PLease help!!
 

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

Top