#Name? error message

T

tc2004

I added an unbound text box to my form and the following expression. When I
go back to Form View I get the following error message: #Name?

Here is the expression:

=IIf((IIf([tbl_Demographics]![dtDateReConsented] Is
Null,[tbl_Demographics]![dtDateFirstConsented],[tbl_Demographics]![dtDateReConsented]))<#4/17/2009#,(IIf([tbl_Demographics]![dtDateReConsented]
Is
Null,[tbl_Demographics]![dtDateFirstConsented],[tbl_Demographics]![dtDateReConsented]))+5*365,(IIf([tbl_Demographics]![dtDateReConsented]
Is
Null,[tbl_Demographics]![dtDateFirstConsented],[tbl_Demographics]![dtDateReConsented]))+10*365)

I originally had this in a query and it worked just fine there, but copying
the code to the form did not work. What is going on?

Thanks.
 
K

KARL DEWEY

I can not follow the logic of these IIF statements --
=IIf((IIf([tbl_Demographics]![dtDateReConsented] Is Null,
[tbl_Demographics]![dtDateFirstConsented],
[tbl_Demographics]![dtDateReConsented])) <#4/17/2009#,
(IIf([tbl_Demographics]![dtDateReConsented] .....

This is saying if dtDateReConsented is null test dtDateFirstConsented but
there is no test criteria.

Can you verbalize the process?
 

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