Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Search field question

Started 1 month, 3 weeks ago by benz1984
Hello, I have a search field in my database so I can searh my records by social security number. Well after the search is finished, it obviously it displays the record I searched for. Well, it seems to place a "filter" on the databse and in order for me to display all records again i have to close out of the form and reopen it again. So it displays record 1 of 1000 instead of 1 of 1 after ...
Site: dBforums - Database Support Community  dBforums - Database Support Community - site profile
Forum: Microsoft Access  Microsoft Access - forum profile
Total authors: 6 authors
Total thread posts: 13 posts
Thread activity: no new posts during last week
Domain info for: dbforums.com

Other posts in this thread:

benz1984 Registered User replied 1 month, 3 weeks ago
Hello, I have a search field in my database so I can searh my records by social security number. Well after the search is finished, it obviously it displays the record I searched for. Well, it seems to place a "filter" on the databse and in order for me to display all records again i have to close out of the form and reopen it again. So it displays record 1 of 1000 instead of 1 of 1 after ...

Sinndho replied 1 month, 3 weeks ago
You can do this in VBA: Code: Me.Filter = "" Me.FilterOn = False

Sinndho Registered User replied 1 month, 3 weeks ago
You can do this in VBA: Code: Me.Filter = "" Me.FilterOn = False

benz1984 replied 1 month, 3 weeks ago
Do you mean add this in the on click event of a command button? Thanks!

benz1984 Registered User replied 1 month, 3 weeks ago
Do you mean add this in the on click event of a command button? Thanks!

Sinndho replied 1 month, 3 weeks ago
Yes that's it: Code: Private Sub Button_RemoveFilter_Click() Me.Filter = "" Me.FilterOn = False End Sub Be aware that this triggers a Current event in the form.

Sinndho Registered User replied 1 month, 3 weeks ago
Yes that's it: Code: Private Sub Button_RemoveFilter_Click() Me.Filter = "" Me.FilterOn = False End Sub Be aware that this triggers a Current event in the form.

benz1984 Registered User replied 1 month, 3 weeks ago
hello, this did not work unfortunately. basically i have a search field with this code. If Not IsNull(Me!FSS) Then Me.RecordSource = "Select * from [Claim Tracking System] where [Social Security] = '" & Forms![Claims Tracking System]!FSS & "'" End If when it searches it obviously brings up what i searched for and if it does not find anything it leaves a black record and ...

benz1984 replied 1 month, 3 weeks ago
hello, this did not work unfortunately. basically i have a search field with this code. If Not IsNull(Me!FSS) Then Me.RecordSource = "Select * from [Claim Tracking System] where [Social Security] = '" & Forms![Claims Tracking System]!FSS & "'" End If when it searches it obviously brings up what i searched for and if it does not find anything it leaves a black record and ...

pbaldy Registered User replied 1 month, 3 weeks ago
Me.RecordSource = "Select * from [Claim Tracking System]"

 

Top contributing authors

Name
Posts
benz1984
4
user's latest post:
Search field question
Published (2009-11-19 09:12:00)
Awesome it worked. I knew it was going to be as simple as that just couldn't pin it. Thanks!
benz1984 Registered User
3
user's latest post:
Search field question
Published (2009-11-13 13:40:00)
hello, this did not work unfortunately. basically i have a search field with this code. If Not IsNull(Me!FSS) Then Me.RecordSource = "Select * from [Claim Tracking System] where [Social Security] = '" & Forms![Claims Tracking System]!FSS & "'" End If when it searches it obviously brings up what i searched for and if it does not find anything it leaves a black record and displays 1...
Sinndho
2
user's latest post:
Search field question
Published (2009-11-12 15:58:00)
Yes that's it: Code: Private Sub Button_RemoveFilter_Click() Me.Filter = "" Me.FilterOn = False End Sub Be aware that this triggers a Current event in the form.
Sinndho Registered User
2
user's latest post:
Search field question
Published (2009-11-12 15:58:00)
Yes that's it: Code: Private Sub Button_RemoveFilter_Click() Me.Filter = "" Me.FilterOn = False End Sub Be aware that this triggers a Current event in the form.
pbaldy Registered User
1
user's latest post:
Search field question
Published (2009-11-13 14:19:00)
Me.RecordSource = "Select * from [Claim Tracking System]"
pbaldy
1
user's latest post:
Search field question
Published (2009-11-13 14:19:00)
Me.RecordSource = "Select * from [Claim Tracking System]"

Related threads on "dBforums - Database Support Community":

Related threads on other sites:

Thread profile page for "Search field question" on http://www.dbforums.com. This report page is a snippet summary view from a single thread "Search field question", located on the Message Board at http://www.dbforums.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity