Hi,
I'm relatively new to Access and have this problem. I have a table (Agent) with a Text field called Active which contains either a Null value or an "X". I use a text box (txtCit) on a form (frmAgentReport) to supply the search criteria for a report which has the the Query as its RecordSource. In the Criteria of the Query I have the following code: iif([Forms]![frmAgentReport]![txtCrit] Is Not Null,[Forms]![frmAgentReport]![txtCrit],[Agent].[Active] Is Null). If X is entered into the text box the report runs correctly, However if a Null value is entered the following error appears; "This expression is typed incorrectly, or it is too complex to be evaluated....."
Any help would be appreciated. Thanks.
I'm relatively new to Access and have this problem. I have a table (Agent) with a Text field called Active which contains either a Null value or an "X". I use a text box (txtCit) on a form (frmAgentReport) to supply the search criteria for a report which has the the Query as its RecordSource. In the Criteria of the Query I have the following code: iif([Forms]![frmAgentReport]![txtCrit] Is Not Null,[Forms]![frmAgentReport]![txtCrit],[Agent].[Active] Is Null). If X is entered into the text box the report runs correctly, However if a Null value is entered the following error appears; "This expression is typed incorrectly, or it is too complex to be evaluated....."
Any help would be appreciated. Thanks.