Results 1 to 2 of 2
  1. #1
    gretsch is offline Novice
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    1

    Entering data in forms with lookup tables

    Hi all,



    I have created lookup tables for all comms information for clients and contacts in my db. I am now having issues understanding how to enter data in a form using this structure. I'm thinking I want a combobox showing types of comm, and then a control next to it where I can enter the info.

    The structure is as follows:

    tblComms
    Comm_ID
    Client_ID (fk)
    Method_ID (fk)
    Contact_ID (fk)
    CommInfo
    CommNotes

    tblCommMethods
    Method_ID
    MethodName (Landline, Cellphone, email, ...)

    So for instance, to enter contact info for a Client, what do I put in the frmClient_Details form? My relationship view is attached (with many recently added lookup tables hidden, spot all the ID fields). I'm not confident that I've got my left and right sides correct for the links.

    I've managed to get "normal" lookup tables working in forms, but the intermediate table (tblComms) is confusing me. Help?

    Thanks,
    Andy

  2. #2
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    Hi Andy,

    A couple points:

    - You have set up joins between tblComms, tblClients, and tblContacts. These joins form a closed loop in your relationship diagram. Closed loops in relationship diagrams should be avoided. (In fact, looking for closed loops is an effective way of troubleshooting a database!)

    - Ideally, a lookup table would only have a single field. Using Primary Keys in a lookup table tends to be overkill. If you intend tblCommMethods to be a lookup table, then it is a good example of this. Try eliminating the [Method_ID] field, and replacing it with [MethodName] in tblComms.

    - - -

    It's unclear what your intention is with tblComms, and this stems from not knowing the relationship between Contacts and Clients. If this should be a many-to-many, then all you need to do is delete the join between tblContacts and tblClients, and allow tblComms to act as a child table. If it isn't many-to-many, then perhaps you could clarify what it is.

    Cheers,

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

Similar Threads

  1. Entering & retreiving data with Forms
    By turnertj in forum Forms
    Replies: 7
    Last Post: 06-04-2010, 12:22 PM
  2. Replies: 0
    Last Post: 03-15-2010, 02:38 AM
  3. Entering duplicate data in Form
    By cotri in forum Forms
    Replies: 1
    Last Post: 01-06-2010, 11:45 PM
  4. Question about entering data through form
    By vixtran in forum Database Design
    Replies: 6
    Last Post: 06-16-2009, 07:23 AM
  5. Replies: 2
    Last Post: 03-16-2009, 12:19 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