Hello all,
I have a query that needs to use a value in a form as it's criteria. I know this is simple, and I have that part working.
What I really need the query to do is look to see the value from the form, if it is not open or null use a value from a second form.
I tried this code in my expression builder as a test.
However, when the frmEnterIssue form is not open, it ask for user input to give the value, thus not seeing it as NULL and using the 66 value in the criteria statement.
Is there another way? I only used the 66 in the statement as a test. My final statement the 66 would be replaced by the second forms field to get the value.
Thanks. Troy
I have a query that needs to use a value in a form as it's criteria. I know this is simple, and I have that part working.
What I really need the query to do is look to see the value from the form, if it is not open or null use a value from a second form.
I tried this code in my expression builder as a test.
Code:
IIf(IsNull([Forms]![frmEnterIssue]![TicketNbr]),66,[Forms]![frmEnterIssue]![TicketNbr])
However, when the frmEnterIssue form is not open, it ask for user input to give the value, thus not seeing it as NULL and using the 66 value in the criteria statement.
Is there another way? I only used the 66 in the statement as a test. My final statement the 66 would be replaced by the second forms field to get the value.
Thanks. Troy