Clearing the words in Search box

Alejo

Member
Local time
Today, 15:43
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
 
Me.WhatEverYourSearchBoxIsCalled = ""

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

Users who are viewing this thread

Back
Top Bottom