Hello, Igork and Mr. Vodka,
Mr. Vodka is right; your task may be achieve with a conditional value list.
I also suggest you give a look at John Mark Osborne's website, DatabasePros. It's filled with examples and hints about many techniques, and you surely will find Conditional Value Lists in there.
Good luck and Happy FileMaking.
Thank you for your answers.