Results 1 to 4 of 4
  1. #1
    alsimbo is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    2

    Spilt table for one cmpany with many contacts

    I have developed a database and used a standard MS template for customer details as part of the development. The issue is that the standard template is set out for one contact for one company. I have now determined that there is the possibility for multiple contacts (and even multiple sites) for each company. I have setup all sorts of relationships with other tables and want to know if there is a way of splitting the customer table into at least 2 tables, one for the company details an the other for the multiple contacts whilst retaining the appropriate relationships with the other tables?



    I did try creating a contact table and using the options for updating all relationships when I changed the source rows for the data i.e. contact name fom the new contact table and not from the customer table etc. This had limited success and I eventually gave up when I was 'going round in circles!'. I

    have some understanding of Access and have developed a few internal databases, but progamming etc. is not a strong point


    I've scrapped the above idea and am back at square one - any guidance would be welcome, thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    To split this table, assuming it does not yet have duplicate companies and the primary key of the table is an autonumber field, create a new number type field. Copy the autonumber data to this new field. Can use copy/paste of the column or an UPDATE query. Now copy the table with a new name of Contacts. Remove fields not needed in each table. Remove the number field from the original table (Companies), the autonumber field can stay in the new Contacts table.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    alsimbo is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    2
    Thanks, done that.

    But, because of the previous relationships with other tables, queries and reports, I am asked for the missing 'parameter values' from the customer table where the fields have been deleted i.e. the contact name

    This is the same as the issue I had yesterday - I am looking to be able to automatically update all queries, reports etc. that access those fields

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Sorry, can't automate, that will require manual design edits.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Contacts Template
    By trumpetman in forum Database Design
    Replies: 3
    Last Post: 06-27-2012, 05:35 AM
  2. linking contacts
    By jkorinek in forum Access
    Replies: 1
    Last Post: 06-11-2010, 03:55 PM
  3. Add new contacts
    By carstenhdk in forum Forms
    Replies: 8
    Last Post: 05-07-2010, 05:28 AM
  4. Contacts Database
    By karthikcoep in forum Access
    Replies: 0
    Last Post: 08-17-2009, 02:02 AM
  5. Outlook contacts
    By noidea in forum Access
    Replies: 0
    Last Post: 07-31-2009, 07:44 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