Results 1 to 5 of 5
  1. #1
    Nixx1401 is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Feb 2010
    Location
    Barbados
    Posts
    115

    Creating Filters on a Form

    I have a form which has the following fields:

    StrContactNo, StrLName, StrFName, StrAddressLine1, StrAddressLine2, StrParish, StrMale, StrFemale



    The form is continuous and is a pop up form.

    I would like to filter the data by Last Name on the form so as to the view a particular person rather than having to scroll down the list.

    I tried the filter option which on Northwind database and cant seem to get it to work, I tried this link http://www.freevbcode.com/ShowCode.asp?ID=4668 not working, and several others on the internet cant seem to get the filter to work.

  2. #2
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    I do not think that a filter is what you want. How will you decide which person you want to look at?

  3. #3
    Nixx1401 is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Feb 2010
    Location
    Barbados
    Posts
    115
    I would have search by last name which will display all the names beginning with a particular letter. If you have better solution feel free to suggest.

  4. #4
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    The easiest solution would be to create a combo box which gives you drop down on the name field and allows you to scroll through the list and find the person and select them. You can bind the combo box to the record so that when the name is selected it gives you only the record for that person. The tool box/combo box wizzard makes it easy and I can walk you through it if need be.

    However, if you want the user to start typing a name and have a list appear based on the letters they begin typing this will require advanced VBA code and will be above my head. but I am sure there are people in this forum that would know how to do that. NTC, llkhou, and RG are all very knowledgable.

    just let us know what you want to do?

  5. #5
    Nixx1401 is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Feb 2010
    Location
    Barbados
    Posts
    115
    The suggestion with the list appearing based on what is typed is ideal. I will probably have do some more research since you dont know the code

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Creating an Inventory Form in Access
    By KIDRoach in forum Forms
    Replies: 0
    Last Post: 09-13-2009, 11:39 PM
  2. Creating Form from Normalized Tables
    By heathers in forum Forms
    Replies: 2
    Last Post: 09-10-2009, 03:43 AM
  3. Replies: 5
    Last Post: 07-26-2009, 12:13 PM
  4. Replies: 14
    Last Post: 06-24-2009, 07:36 PM
  5. Replies: 0
    Last Post: 12-01-2008, 03:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums