Results 1 to 8 of 8
  1. #1
    SSUTTON is offline Novice
    Windows 8 Access 2007
    Join Date
    Mar 2015
    Posts
    24

    ComboBox, ListBox or something else

    Hi: I am working on a database that is going to contain families involved in an organization I am with. My form is a tabbed control with 5 tabs on it and is set to continuous. One of the tabs is titled "Children".



    This is my question:

    When a family has more than one child I would like to be able to display all of their information in the tab at the same time with columns for Firstname, last name, Date of Birth and MCP Number as headings. Should I use a list box, combobox or is there any other way I can do this and have all of this information for a given family to display at once in it's assigned tab?

    Thank you.

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    Listbox is alright if this is only for display. You have to set the listbox rowsource every time the record changes. Do not know your data structure, but a sub-form is ideal for this kind of info (Parent-child relationship) with separate tables for parents (Main form) and children (sub-form))

  3. #3
    SSUTTON is offline Novice
    Windows 8 Access 2007
    Join Date
    Mar 2015
    Posts
    24
    There are times when things may need to be edited. If a child no longer lives at home - old enough to be on their own.

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    Hence sub-form is best suitable so you do not need any code to fill the list box and easily add/remove/edit the children

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    ssutton,

    Could you please expand the description of WHAT you are trying to do? Plain English please.

    This is a start
    I am working on a database that is going to contain families involved in an organization I am with.
    but you have jumped into HOW too quickly and readers are missing some details.

    A jpg (screen capture) showing your tables and relationships would help with context.

    Good luck.

  6. #6
    SSUTTON is offline Novice
    Windows 8 Access 2007
    Join Date
    Mar 2015
    Posts
    24
    I am working on a database that is going to contain information about families involved in an organization I am with.I have figured out how to create the listbox and I have it created. Click image for larger version. 

Name:	Untitled.jpg 
Views:	11 
Size:	102.7 KB 
ID:	20182 My problem now is that when I right click and pick Edit List Item from the list.. It seems like nothing happens. I have given you a screenshot of my design. I tried to upload my database but the file size is to big to upload here. Sorry! Any ideas of what property I should be looking at on hte Listbox Property sheet to correct this. Or do I just do it through the additem vbacode? Thank you.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Database designs would normally start with a set of requirements; then build a data model of the "things" involved in the proposed application based on the "business" facts.

    Here is a free data model which identified the tables involved in a typical Family Hierarchy.

    It should get you back on track.
    Good luck with your project.

  8. #8
    SSUTTON is offline Novice
    Windows 8 Access 2007
    Join Date
    Mar 2015
    Posts
    24
    I actually did get my list box structure designed. Now I am working on Buttons for my forms and I am going to use the button wizard for that. Thanks for your help

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

Similar Threads

  1. Replies: 1
    Last Post: 01-31-2015, 09:03 PM
  2. Replies: 2
    Last Post: 03-23-2014, 06:50 AM
  3. Replies: 1
    Last Post: 09-10-2012, 11:21 PM
  4. Replies: 7
    Last Post: 04-18-2012, 11:38 AM
  5. Replies: 1
    Last Post: 03-24-2010, 08:42 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