sql - Filtering a query without having to write in the full name in Microsoft Access -
i made form in microsoft access textbox , query. whatever written in textbox shown in query (for example type customer1 , query displays rows have firstname(this column name) customer 1).
i'm trying make don't have write full name of customer in order have query filter table.
example : have customers named jhon, edward , mark, in order display mark have write in "mark"(the full name). want able filter out customers example first 2 letters of name "ma" when write "ma" in textbox.
here code i've been using filter far :
select * kupci forms.[form1].[text4] null or ( forms.[form1].[text4] = forms.[form1].[text4] , ime=forms.[form1].[text4] );
side-note : kupci means customers , ime means first name. query displays if there no text in textbox.
thank help.
my best guess following want:
select * kupci forms.[form1].[text4] null or ime forms.[form1].[text4] & "*"
if query had searched whole names, should partial names.
Comments
Post a Comment