473,473 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Form List box unfilter

1 New Member
I have a form that uses a text box and combo box to filter a list box. When I use the combo box to filter the data the list box does not unfilter when I click my clear button. If I use the text box it does. The listbox is created from a query. The code for the button is below. The name of the list box is SearchResults.

Expand|Select|Wrap|Line Numbers
  1. Private Sub BtnClearFilter_Click()
  2.  
  3.     Me.SearchFor = ""
  4.     Me.SrchText = ""
  5.     Me.CboSource.Value = Null
  6.     Me.CboSourcePart.Value = Null
  7.     Me.SearchResults = Me.SearchResults.ItemData(1)
  8.     Me.SearchFor.SetFocus
  9.     Me.SearchResults.Requery
  10.  
  11.  
  12. End Sub
Apr 16 '20 #1
1 2353
twinnyfo
3,653 Recognized Expert Moderator Specialist
jhust,

Welcome to Bytes!

Without knowing how the record source for your list box is created, we are unable to help you here. Obviously, when unfiltering, the .Requery action is producing identical results. But, without seeing the underlying query, we don't know where it is getting its data.

Standing by for more details.
Apr 16 '20 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jefferis NoSpamme | last post by:
Hi folks, Trying to fill in a gap in my understanding of php, and so this is rather newbish: I have created a form where a user selects 2 items from a list of 8 values. That form field is...
4
by: Irwinsp | last post by:
Hi All, I have a List Box on a form. The values in the list box need to be variable based on another field value (text box) on the form. How can this be done. Each time I try, the values are...
6
by: zeeshanks | last post by:
Hello Sam, In a Windows form, the listview control is available but if i 'm working in a webform, i cannot find it. Can you please advise how to create a listview in a webform or what other...
12
by: Slick123 | last post by:
hi there urgent help required i am trying to do a customer search function on my database as well as add edit and delete functions, all were working previously however for some reason its...
4
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
Hi, I have just started building an application which is windows form based, rather than web based, and I am having troubles with layout. I can't find any control which gives me just a simple text...
1
realayumi
by: realayumi | last post by:
ACCESS 2003 WIN XP Hi, i'm new in access, just a view days, this is my first post. Sorry for my bad English. I have 3 tables. tbl_product
0
by: NagaShravan | last post by:
How can we load the records which is selected in prvious form list view
4
by: DenamP | last post by:
Hi everyone, I have a form in my database with a list box. The list box values come from a separate table created just to store values for the list box. What I want to happen is for the value...
6
by: nsiotto | last post by:
I have a form with a list (as per attached image) and a formula that according if the box is checked it either enables the button or disables it. I have implemented this on form load. But the issue...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.