If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
#Name? error message
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. |
#2
|
|||
|
|||
#Name? error message
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? -- Build a little, test a little. "tc2004" wrote: 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. |
Thread Tools | |
Display Modes | |
|
|