Hi,
I have a table which the user needs to query it depending on criteria such as '>' or '<'. I have a txt box in my form called txtCriteria.
I have have a button which runs the query.
In the query under the column that I want the criteria set I write: [Forms]![FrmMain]![txtCriteria]
This works well if I enter a number. But when I enter a >50 I get the following error message:
Error 2001: You cancelled your previous operation.
Is there a way to avoid this?
Thank you!
I have a table which the user needs to query it depending on criteria such as '>' or '<'. I have a txt box in my form called txtCriteria.
I have have a button which runs the query.
In the query under the column that I want the criteria set I write: [Forms]![FrmMain]![txtCriteria]
This works well if I enter a number. But when I enter a >50 I get the following error message:
Error 2001: You cancelled your previous operation.
Is there a way to avoid this?
Thank you!