I'm trying to retrieve some data with a query.

Story line of my entities: I have Company, which has Candidatura, which as LKP_EstadoCandidatura, LKP_TipoProjecto, and Concurso.

I have a combo box to select each of this parameters for the serach, with value 0 if none is selected.

If I select a Company, everything goes ok. but if I don't have anything selected, the table returns no rows.

In attach, is a screen shot of my qyery.

Thank's in advance for any help,

Best Regards,

Francisco Neto