Results 1 to 3 of 3
  1. #1
    pbs is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    6

    Relations between tables

    Hello,


    I am new at this forum, because i have a (medium) problem.
    Perhaps anyone can help me with it.

    I need to make a database to control my goods.

    i have made three tables.

    table 1

    OrderID auto
    order text
    call text
    date date
    ....

    table 2

    ArtikelID auto
    artikel text
    Artikelname text
    stock number


    table 3

    SerieID auto
    Serialnumber text
    Objectnumber text
    Place text
    ...

    If i get a order then i fill this in in table1.order
    a order can consist from multiple artikels table2.artikel
    then the last step if in a order they orderd two of the same artikels you can have two serialnumbers table3.serialnumber


    See uploaded picture
    Click image for larger version. 

Name:	order.jpg 
Views:	20 
Size:	47.6 KB 
ID:	27255
    The problem is that the table 2 has around 2000 artikels now, and the artikels have a atribute no duplicates.
    The only way to alter the table 2 is when i need to add a new artikel It checks for duplicate artikels.
    Second problem is for example artikel 2 there are 40 pieces in stock (table2), they ask for two pieces.
    Where do i (which table ?) fill in 2 pieces so i can recalculate the stock 40-2=38
    The next time they the same artikel it must show 38 instead of 40
    O ja table 2 is a import from a other system therefor is must stay intact, as i said before.

    Please, can anyone help me with this problem, i have done so many attemps already.
    i made a fourt table help , but is didn't solve my problem so far, every time table2 wil be altered, and then i get a message duplicate not allowed. ( and that is good )
    Is this also possible with split tables ( i want to use have the tables on a central server ) so that i can make differt forms for other people (purchase)
    They only need to fill a order, the artikels and how many of them they need. the rest is for me.

    Thanks in advance ( Sorry for the not 100% correct english, i am dutch )
    Last edited by pbs; 01-27-2017 at 05:34 AM. Reason: Picture is gone

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    The serial# could be in tabl2.
    but is tabl3 the tStock table?
    when the order is Submitted, that is when you run an update query to reduce the count in the tStock table.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-08-2017, 04:18 AM
  2. Designing the tables and relations
    By Enzym in forum Database Design
    Replies: 5
    Last Post: 12-29-2014, 08:54 AM
  3. Relations tables
    By azhar2006 in forum Access
    Replies: 6
    Last Post: 08-03-2014, 02:29 PM
  4. Combining tables and keeping relations
    By Bangsadrengur in forum Access
    Replies: 7
    Last Post: 07-28-2011, 08:12 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