Hi,
This is in relation to post: https://www.accessforums.net/access/...ext-46788.html
As mentioned in the above post, I have a code, situated in the criteria section of a field in a query.
This query is used as the data source for a sub form.
The subform is contained within a main form, which is where my "filtering textbox" is.
Say we have three records:
Chesterfield Steels
TM STEELS
alloy steels
I would like to be able to enter steels into the text box, and be displayed with all of the above records, due to the fact that they all contain: steels in some form.
My problem is this: The text box is only showing records that match exactly what is entered. So if I enter steels, I get the record: alloy steels; if I enter STEELS I get the record: TM STEELS and finally if I enter Steels, I get the record Chesterfield Steels.
No here is my question, the Query being used as the data source gets its information from a linked table, and I wondered if this could affect why the search does not work properly?
This is due to the fact that I recently created a test database from scratch, exactly the same as the current one, however it did not have a linked table; It used a table I created and then populated with the above three records and some other anomalies to prove the search works.
This time, the text box brought all three records back when steels was entered.
Does anyone have any information as to why it works in this way, and if there is a way to get it to work the way I want it to. Maybe there is some setting in SQL Server that I have to change?
By the way, the code that is in the criteria in the query is exactly the same in both of the databases, which is what led me to believe that the problem lies with SQL rather than with the database? The code is:
Code:
Like "*" & [Forms]![MainWindow].[NameTxt] & "*"
Any information is greatly received.
Thanks,
Danny