Moxie Drive Expressions Article Directory


Access DatabaseTip: Create a user defined search field for a list box...

Access Tip: Create a user defined filter or search form.
Many times it is necessary to provide your users with an easy way to filter or search for data in large table of information. This tip will show you one quick and easy way to solve the problem by giving the user a field to enter a search string and updating the form with those fields that fit the search pattern. It's quick and easy, so give it a try.

For this example I used a table of keywords and how often they were found on the internet in the last month. You can use any table you want, just make sure you adjust the code to reflect the right fields in the SQL string. So, if in this example I wanted to know how many times “Access” was used in a search string I can enter Access in the search field and the form shows me all the search strings containing the field "access" and then totals it for me.

Preparation:
Create a table named "keywords" with these fields and settings:
kwid - autonumber
kwcount - number
kword - text

Note: you can use any field names you wish, just adjust the code below accordingly.
1. Create a new form using the "keywords" table as the data source.
2. Put all the fields from the table on the form.
3. Arrange them all in a line and add a form detail and set the form type to continuous. I like to put the field headers above the fields in the form header section and place the fields in the detail section.
4. Next create an unbound text box and name it "srch" by adding a text field with no data source.
5. Define the after update event so that after your user enters a string in the srch field the form redisplays with those records that have that string in it.

Private Sub srch_AfterUpdate()
Dim srchstrng As String
srchstrng = Me.srch.Value
sql = " SELECT Keywords.kwid, Keywords.kwcount, Keywords.kword FROM Keywords_
WHERE (((Keywords.kword) Like '*" & srchstrng & "*'));"
Form.RecordSource = sql
DoCmd.RunCommand acCmdRefreshPage
End Sub

6. To get a total of the count of the keywords you need to add another unbound box in the form footer and make it's data source:

=Sum([kwcount])

Save the form and give it a try.

Customer Success: Health Care Company Solves License Compliance with Access Database

Situation
This customer has to track as many as fifteen different medical licenses and credential verifications for over 3000 employees in the home health care field. They can not have an employee attend to a patient that does not have the correct licenses and credentials due to safety regulations enforced by the state. These licenses all have to be renewed and they have different periods and start dates. The only way that they are able to enforce the license renewals is through payroll. Another words, get your licenses renewals up to date or we can no longer send you to our patients. With payroll weekly, this became a huge problem just tracking the expiration dates and sending out notifications so that they would not loose good employees.
This process previously required an average of twenty man hours per week to complete and due to the rush often had mistakes allowing unlicensed and or uncredentialed care givers visit patients. Our customer could have been censored or even lost their license over a violation like this, so they had to have a better way of tracking compliance.

Solution
An automated human resources license tracking tool built with MS Access that checks license renewal dates for all licenses and credentials that every care giver employee is required to have in order to see patients. The tool polls the employee data each payroll and checks the renewal dates for all licenses listed in the employee user profile and generates a letter that goes to the employee designating which licenses are nearing renewal dates and or are expired. The system also flags all employees with expired licenses and prevents them from being scheduled for patient care for the specific license if needed.

Benefits
The license tracking process now requires only a few minutes per week to complete. The company has virtually eliminated problems with license compliance. Employees license compliance has gone to near 100% and those employees that don’t have licenses are no longer sent to the wrong patients.

You are receiving this newsletter because you requested more information from us on our website. Please let us know if you want to opt out of receiving this newsletter by clicking here .

Feel free as well to let us know if this is helpful or to send ideas for the types of subjects you would like to see covered in the future by clicking here.



Category: Software

Access DatabaseTip: Create a user defined search field for a list box was written by:

Author:Jon Watson
Added: Sat, 20 Oct 2007 07:40:24 -0400
This Article Has Been Read 1330 times

View all Jon Watson's articles

About the Author: Jon Watson is the founder of Biomation Systems, Inc. With 26 years experience helping Fortune 500 companies with process improvement he formed BioMation to bring the same expertise to smaller companies that need the same improvements at an affordable price.
Website: http://www.biomationsystems.com

More Articles About Software

Popular Articles

Guidelines to Making a Successful Presentation
MS Access Quick Cash Flow Calculator tip
MS Access Tip: Keeping up with user Activity
The best open source scripts on php/mysql
Working from the beach: remote office in a nutshell
Most Popular Electronic Medical Billing Software
Internet explorer vs. FireFox
Software for Tax Deduction
What Is The Purpose Of ERP Software?
Erasing your Internet Tracks and History
The Most Important Components of HR Software
Software Testing Course: Where Can You Take Them?
Internet Cleaners Tools
Looking For Erp Software?
Quickbooks Premier: A Notch Above the Rest
The Latest News On ERP Software
Digital Rights Management And It's Death
Anti-Spyware and Pro Security
Tools to Protect your Privacy and Security
Human Resources Software
Recent Articles

What Can Microsoft Dynamics GP do for you?
Take care while choosing the Right Ip Camera Software
Make a Career in Embedded Software Engineering
Automatic Calling Software-Making Life Easier for Frequent Callers!
Stunning Powerpoint Presentation 2 Powerful Secrets Revealed
Three Ways to Become an Expert on Presentation
Download Most Popular Software titles online instantly
Microsoft Excel Basics: What Are Functions?
How to Bypass Websense
Softweb Solutions - Global offshore IT solution provider
How Point of sale software will automate your online business
Software Outsourcing
Privacy on the Internet
Web Filtering in the Business Place
Providing for your customer with CRM
The revolutionary software - Astute
STOCK TRADING SOFTWARE PROGRAMS
Information regarding Web Filtering
What is Astute Software?
The Benefits of Web Filtering

Not What You Were Looking For?


Google
Google

Moxie Drive Expressions Article Directory Main Page. Moxie Drive Expressions

Submit Articles Submit Articles

Contact us Contact us

Add to favorites Add us to favorites


Add to Mixx!

Fave it!

Subbmitt!

Hint - Hold "T" button down and right click to open Sphinn and Subbmitt in a new window.



Count



Feeds

Valid HTML 4.01 Transitional