In design view, how do I filter on my data so that it only shows data that beings with "PI"? Yes I know I can do this by the main screen and say select text that beings with PI but I would like to know how to do it with sql.
thank you
In design view, how do I filter on my data so that it only shows data that beings with "PI"? Yes I know I can do this by the main screen and say select text that beings with PI but I would like to know how to do it with sql.
thank you
you do it in the query.
use an asterisk in the field criteria type: PI*
it will change to LIKE 'pi*'
you can do live filters on the form using the full query
select * from table
then filter using a text box txtBox1, and the afterUpdate event
Code:sub txtBox1_Afterupdate() me.filter = "like '" & txtBox1 & "*'" me.filterOn = true end sub
i think i figured it out....
like "PI%"
thank you ranman, I think we posted at the same time.
% only filters 1 character.
* filters EVERYTHING after the PI.
Actually % does match any number of characters. https://support.office.com/en-ie/art...9-e18abaad12d1
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
awesome link! very very helpfulActually % does match any number of characters. https://support.office.com/en-ie/art...9-e18abaad12d1