Results 1 to 6 of 6
  1. #1
    csnyder1582 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2011
    Posts
    2

    Query to seperate active/inactive clients

    I'm an insurance agent setting up a database to keep track of my clients. It has all the basic information; name, address, phone, email, policy #, type of policy, etc...). I have a table set up that will contain every client. What I want to do is set up a form for my active clients and a form for my inactive clients with a drop down menu in both forms to move my clients to their respective place.



    Any help would be greatly appreciated.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Normalized database design would leave all the clients in one table, with a field for the status. You would use one form and either open it filtered to one group or the other, or include a control at the top to change views. Typically I'd expect the policy info to be in a related one-to-many table, based on the assumption that a client could have more than one policy (auto, home, life, etc).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    islo is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2009
    Posts
    7
    It would be helpful to know how many different statuses can your client have over time. For instance, Active, Inactive, Closed, Denied etc.

    Having said that, a "status" field in the clients table would be the quickest way to achieve this.
    However, if your clients will be changing status every now and then, maybe you may want to create a new table, say "Client Status" and this table will save all the client statuses over time.
    This can help you see a history of a clients status eg, Active on 5/5/2011, Inactive on 4/15/2010 etc.

  4. #4
    csnyder1582 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2011
    Posts
    2
    My clients will have 1 of 10 statuses and I would like 1 form to contain all my active clients and 1 form to contain the rest.

    From the research I've done it seems I'd want to have a form with its source being a query of active and a form with a query for those with the other 9 possibilities; I just don't know how to set this up

  5. #5
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I would only use one form, but to use two, each would be based on a query, along these lines.

    SELECT * FROM TableName WHERE Status = "A"

    SELECT * FROM TableName WHERE Status <> "A"
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    islo is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2009
    Posts
    7
    SELECT LNAME, FNAME, STATUS
    FROM tbl_Clients
    WHERE STATUS="Active";

    This is a querry that will give you a list of client last name &first name and their statuses if they are Active...

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

Similar Threads

  1. Sum By Clients
    By BorisGomel in forum Programming
    Replies: 2
    Last Post: 05-02-2011, 09:26 AM
  2. Replies: 1
    Last Post: 12-12-2010, 05:03 PM
  3. Inactive or active
    By Bruzer in forum Access
    Replies: 4
    Last Post: 04-08-2010, 04:20 PM
  4. Use form List Box to query Active Directory
    By grafiksinc in forum Forms
    Replies: 4
    Last Post: 12-02-2009, 11:56 PM
  5. Active/Inactive Option
    By mikel in forum Database Design
    Replies: 6
    Last Post: 10-09-2009, 07:47 AM

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