Results 1 to 6 of 6
  1. #1
    Lewis825 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2015
    Location
    UK
    Posts
    19

    Question Linking Table Data


    Hi All,

    This may be very simple but I cant see it..

    I have two tables "All Products" & "Active Products"

    I have a simple form, with a list box showing all entries in the "All Products" table which is filtered by a search box. this simply shows the Code, Description & Cost

    I want to click on a product in this list to open a form. If that product code already exisits in the "Active Products" Table I want it to show its entry through the form. Standard.
    but if that code doesnt exist in the "active" table i need it to add a new record in the "active" table putting the code in the form ready to go.

    Thanks in advance

    Hope all makes sense

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Why do you have 2 tables? Why wouldn't you just have 1 table,"All Products", with a flag ACTIVE.

  3. #3
    Lewis825 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2015
    Location
    UK
    Posts
    19
    Thats not a feasable option in this case

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    Please tell us more re the feasibility in plain English.

  5. #5
    Lewis825 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2015
    Location
    UK
    Posts
    19
    All Products contians all items from all our suppliers, It is bassilcy a stripped down copy of our suppliers price lists.

    If we get an order for an item for the first time we havent sold before, I need to be able to pull it from the table and add it to the active table pulling the code and price through with it.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    Then maybe your table structure is working against you. Getting your tables and relationships to support your business processes is fundamental to database.
    If you have multiple suppliers supplying similar or same products, and you want to track active products, then you need to record and monitor which supplier supplied which product.
    My gut feeling is that you have jumped deeply into Access without having a database structure that you have tested against your requirements.

    You may get some ideas from this free data model from Barry Williams

    Good luck.

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

Similar Threads

  1. Linking data between databases
    By Back2Basics in forum Access
    Replies: 1
    Last Post: 07-25-2013, 01:01 PM
  2. Replies: 1
    Last Post: 03-11-2013, 07:19 PM
  3. Replies: 2
    Last Post: 02-16-2012, 04:29 PM
  4. Linking Access Table with already imported External Data (Excel)
    By izzarshah in forum Import/Export Data
    Replies: 1
    Last Post: 07-29-2010, 09:40 AM
  5. Linking Table Data on Forms
    By P5C768 in forum Database Design
    Replies: 12
    Last Post: 03-22-2010, 09: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