Clearing the words in Search box (1 Viewer)

Alejo

Member
Local time
Tomorrow, 01:09
Joined
Jun 14, 2021
Messages
78
Hi,

I have a Search box and Search button that works fine when searching a particular word.
The clear button works fine as well but the issue is the word stays in the search box.
1624525985724.png


Can anyone please help on how to clear the text as well after the clear button is launched, below is the code that I created for Clear button:

Private Sub Clear_Click()
Me.FilterOn = False
End Sub
 

Gasman

Enthusiastic Amateur
Local time
Today, 23:09
Joined
Sep 21, 2011
Messages
14,336
Me.WhatEverYourSearchBoxIsCalled = ""

I would normally clear the filter as well to be safe?
Me.Filter = ""
 

Alejo

Member
Local time
Tomorrow, 01:09
Joined
Jun 14, 2021
Messages
78
Solved. thank you
 

Users who are viewing this thread

Top Bottom