I have query that have a criteria coming from a form. For example, the field in query is "Status" and the criteria will be "Active", "Closed" or "Pending".
I have a report form which has a combo box that contains the criteria "*"; "All"; 1; "Active"; 2;"Closed"; 3; "Pending" and the default value is "*''
I also have a macro to generate the report based on the user selected criteria. On the query's criteria, I enter correctly as "Like [Forms]![frmReports].[Status]. It works very well.
The problem is that I don't want "Pending" status on the criteria and I could not this to work. I have tried entering "Like 1 and 2", "Not 3", "Between 1 and 2", but this does not work.
Is there away to generate a criteria just to allow the user to select only either Active and Closed, Active or Closed?
Thanks,
HA
I have a report form which has a combo box that contains the criteria "*"; "All"; 1; "Active"; 2;"Closed"; 3; "Pending" and the default value is "*''
I also have a macro to generate the report based on the user selected criteria. On the query's criteria, I enter correctly as "Like [Forms]![frmReports].[Status]. It works very well.
The problem is that I don't want "Pending" status on the criteria and I could not this to work. I have tried entering "Like 1 and 2", "Not 3", "Between 1 and 2", but this does not work.
Is there away to generate a criteria just to allow the user to select only either Active and Closed, Active or Closed?
Thanks,
HA