Hello
I have a problem with the search function that CORE helped me with in the Queries Macros and More thread.
Basically I have ditched the filters for a standard search function.
The user is presented with a form with combo boxes that contain the search criteria eg site, task priority and status.
The boxes are called StatusCombo0, PriorityCombo0 etc etc.
These are liked to a query that has the criteria
Like [Forms]![FrmSEARCH]![PriorityCombo0]
In each field (obviously the status combo is liked to the status field and so on.
This works fine in that it displays results the issue is the results its displays…which is also where you may not understand what im saying because I cant really explain it very well..ive drawn a few blank faces in the office explaining this lol
Basically. When I search by site in my combo box I select Newcastle this displays all the results for Newcastle as you would expect…oh no
(And now for the bit I cant explain…)
For some reason the only results that are displayed are the ones that have a value of Newcastle in the Site field, and only if there is a value in the other fields I am searching even if I have left them blank.
Eg Newcastle is in the site search field, priority and status have the default * in the combo box so they will display any value.
Now when I hit search the only results it displays are the ones that have a value of Newcastle in site, and any other value priority and status. If there is a blank in either of these 2 criteria it will emit the result from the results.
I think the problem is its not searching for Null values as part of the query, ive played on with Is Null and Is Not Null but I can display every table result or none when I do this.
Any Help will be VERY much appreciated.
Thanks
Matthew
I have a problem with the search function that CORE helped me with in the Queries Macros and More thread.
Basically I have ditched the filters for a standard search function.
The user is presented with a form with combo boxes that contain the search criteria eg site, task priority and status.
The boxes are called StatusCombo0, PriorityCombo0 etc etc.
These are liked to a query that has the criteria
Like [Forms]![FrmSEARCH]![PriorityCombo0]
In each field (obviously the status combo is liked to the status field and so on.
This works fine in that it displays results the issue is the results its displays…which is also where you may not understand what im saying because I cant really explain it very well..ive drawn a few blank faces in the office explaining this lol
Basically. When I search by site in my combo box I select Newcastle this displays all the results for Newcastle as you would expect…oh no
(And now for the bit I cant explain…)
For some reason the only results that are displayed are the ones that have a value of Newcastle in the Site field, and only if there is a value in the other fields I am searching even if I have left them blank.
Eg Newcastle is in the site search field, priority and status have the default * in the combo box so they will display any value.
Now when I hit search the only results it displays are the ones that have a value of Newcastle in site, and any other value priority and status. If there is a blank in either of these 2 criteria it will emit the result from the results.
I think the problem is its not searching for Null values as part of the query, ive played on with Is Null and Is Not Null but I can display every table result or none when I do this.
Any Help will be VERY much appreciated.
Thanks
Matthew