Results 1 to 6 of 6
  1. #1
    raffi is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2014
    Location
    Inside a Sub Procedure
    Posts
    88

    conjunction Table Data Entry

    hi, lets say i have 2 tables, "Items" and "Locations" and i created one to many relation from each table to 1 conjunction table, and Added one extra field called quantity into the conjunction table, so now the conjunction table has 4 Fields, ID AutoNumber and "Item" "location" "quantity" Fields, ok and i turn it into query then put the fields in form and use it as a data entry

    im looking for a way, where if I choose an item From the item combobox, the locations where this item has quantity in it, would be available in the locations combobox, so i can add on the existing quantities

    or to make it eazier, when i choose an item, it would let me choose all the location names which have this item next to it, so i may ( edit and add) the previously set quantity field

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    If you want to create records in conjunction table, use a form bound to table and comboboxes to select Item and Location then enter quantity.

    Why would you need to change the quantity of all existing conjunction records for the same location and item?
    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
    raffi is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2014
    Location
    Inside a Sub Procedure
    Posts
    88
    i want to add new items which have arrived into a warehouse, and the warehouse have shelves, and shelves have names such as "A1 L1" "A2 L1" so im trying to merge items with shelve names, some items go into same shelves and others different new shelves, and i have to add the quantity of the items into already available ones or create new shelf for new item which is a new record in the junction table

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Sorry don't understand the issue. If you want a new record then enter a new record.
    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.

  5. #5
    raffi is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2014
    Location
    Inside a Sub Procedure
    Posts
    88
    ok what im trying to do is much like the form i created named frmStockIn but with TblStockInLoc but this time instead of the SupplierName i want to add items to locations and with quantities

    in frmStockIn when i add a quantity to an item it is being saved, when i select the same item it would show me how much Quantity is available from that item.

    but when i created FrmStockInLoc im faced with a situation where many items can have 1 location and many locations can have 1 item so im not sure how to save the locations to items and items to locations in a way so i can add quantities
    Attached Files Attached Files

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Your data structure doesn't make sense to me. Consider:

    tblLocations

    tblSuppliers

    tblItems
    SupplierID

    tblStock
    TransactionDate
    TransactionType
    ItemID
    LocationID
    Quantity

    Might find this of interest http://allenbrowne.com/AppInventory.html

    Might also look at the MS Desktop Product Inventory database template.
    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. Replies: 6
    Last Post: 10-22-2022, 08:27 AM
  2. Form for new data entry which link to another table
    By marcvanderpeet12 in forum Forms
    Replies: 3
    Last Post: 06-12-2013, 09:47 PM
  3. Make a form for table data entry
    By marcvanderpeet12 in forum Forms
    Replies: 1
    Last Post: 10-10-2012, 06:27 AM
  4. Data Entry & Multiple Table Reference
    By dr4ke in forum Access
    Replies: 14
    Last Post: 06-22-2012, 08:23 AM
  5. Multi-table Data entry form
    By halpme in forum Forms
    Replies: 3
    Last Post: 11-10-2011, 02:48 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