Y
Yair Sageev
Hi,
I have a query that can either get the ProjectTitle from the Projects Form
or from the Repairs Form. I'm trying to write a query that matches the
project title from either one of the forms, depending on which one is
loaded. I tried writing the following in the criteria of the query:
=IIf([Forms]![Projects], [Forms]![Projects]![ProjectTitle],
[Forms]![Repairs]![ProjectTitle])
Every time I run the query it asks me for [Forms]![Repairs]![ProjectTitle]
if the repairs form isn't loaded but the projects form is, and vice versa.
What am I doing wrong?
Thanks in advance.
I have a query that can either get the ProjectTitle from the Projects Form
or from the Repairs Form. I'm trying to write a query that matches the
project title from either one of the forms, depending on which one is
loaded. I tried writing the following in the criteria of the query:
=IIf([Forms]![Projects], [Forms]![Projects]![ProjectTitle],
[Forms]![Repairs]![ProjectTitle])
Every time I run the query it asks me for [Forms]![Repairs]![ProjectTitle]
if the repairs form isn't loaded but the projects form is, and vice versa.
What am I doing wrong?
Thanks in advance.