C
Chrisso
Hi All
I have a form(cFrmDashboard) with text boxes for the user to enter
criteria and a list box which displays a query that uses the values
entered in the text boxes to search my main table.
In my search query for each field that I have provided a text box I
enter the following criteria (for example":
Like "*" & Forms![cFrmDashboard]![txtType] & "*" Or Forms!
[cFrmDashboard]![txtType] Is Null
I enter these all on the 1st "Criteria" line and this is easy to read
and change.
This works fine until I want to add another field to my search query.
When I reopen the query Access has decided to rewrite my query by
splitting up all my statements onto seperate lines to deal with the OR
condition.
I would not mind this so much but it makes it impossible to maintain
the query and sometimes once this happen the query just does not work
anymore.
Is there a way of telling Access not to reinterpret my criteria for my
query?
Has anyone else had this problem and how do you deal with it to make
sure that you can update/maintain such a query?
Is this the best way/practise to provide a user driven search form?
Thanks for any ideas,
Chrisso
I have a form(cFrmDashboard) with text boxes for the user to enter
criteria and a list box which displays a query that uses the values
entered in the text boxes to search my main table.
In my search query for each field that I have provided a text box I
enter the following criteria (for example":
Like "*" & Forms![cFrmDashboard]![txtType] & "*" Or Forms!
[cFrmDashboard]![txtType] Is Null
I enter these all on the 1st "Criteria" line and this is easy to read
and change.
This works fine until I want to add another field to my search query.
When I reopen the query Access has decided to rewrite my query by
splitting up all my statements onto seperate lines to deal with the OR
condition.
I would not mind this so much but it makes it impossible to maintain
the query and sometimes once this happen the query just does not work
anymore.
Is there a way of telling Access not to reinterpret my criteria for my
query?
Has anyone else had this problem and how do you deal with it to make
sure that you can update/maintain such a query?
Is this the best way/practise to provide a user driven search form?
Thanks for any ideas,
Chrisso