Solved single textbox search (1 Viewer)

FahadTiger

Member
Local time
Today, 11:10
Joined
Jun 20, 2021
Messages
115
Hi Experts

I want search more than one record from single textbox and when I text (1,3) give me a records of 1 and 3 ..I used this code

.Filter = "([EmpID] In(" & [Forms]![Form 1]![TxtID] & "))"

.FilterOn = True

But it give me un Error

Any advise plz
 

FahadTiger

Member
Local time
Today, 11:10
Joined
Jun 20, 2021
Messages
115
Sorry for every one
its working with me in vba.. but i want it in query builder
 
Last edited:

Gasman

Enthusiastic Amateur
Local time
Today, 09:10
Joined
Sep 21, 2011
Messages
14,267
You could try ?
Code:
SELECT TestTransactions.*
FROM TestTransactions
WHERE (((InStr(1,[Forms]![Form4]![txtCopy],[TestTransactions].[ID]))>0));
 

FahadTiger

Member
Local time
Today, 11:10
Joined
Jun 20, 2021
Messages
115
You could try ?
Code:
SELECT TestTransactions.*
FROM TestTransactions
WHERE (((InStr(1,[Forms]![Form4]![txtCopy],[TestTransactions].[ID]))>0));
thank you Sir Gasman.. its perfect
 

Users who are viewing this thread

Top Bottom