Results 1 to 13 of 13
  1. #1
    yorrdii is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2020
    Posts
    7

    Post Help me with a formula for this


    Hi all,

    I'm a bit stuck in access.

    i want to create 3 tables (inbound, outbound and stocklist)

    if i put a line item in 'inbound' table it should also be added to the 'stocklist' table.

    and if i put a line item on the 'outbound' table it should be removed only from the 'stocklist' table not from the inbound.

    is there anyone who can help me?
    Thanks!

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Why not just have one table to record in and out records. Record outs as minus figures and in as positive figures.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742

  4. #4
    yorrdii is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2020
    Posts
    7
    Quote Originally Posted by Bob Fitz View Post
    Why not just have one table to record in and out records. Record outs as minus figures and in as positive figures.
    We need to be able to output the information from the tables, every one in a different excel sheet. thats why we cannot use 1 table.

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by yorrdii View Post
    We need to be able to output the information from the tables, every one in a different excel sheet. thats why we cannot use 1 table.
    I would have thought that you could extract whatever data you need from the one table using queries and used those to export the data to excel.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    OK. Then perhaps you could describe the "business" in simple terms. What exactly are you working with? And what exactly do you do with the various data? We don't know your business nor details of what you are trying to accomplish. Tell us like you would tell an 8 year old, and readers will give you some more focused responses.

    In addition some sample data, showing
    -input, and
    -outputs based on the inputs would be helpful.

  7. #7
    yorrdii is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2020
    Posts
    7
    we have a project running for another company. we are working now with 3 different excel sheets an inbound file, outbound file and a stocklist file. The inbound is to record any incoming items, the outbound is to record any outgoing items and the stocklist is a file what we have currently in our stock. so if we put something in on the inbound list, it should be copied to the stocklist automatically. if we put something on the outbound list, it should be removed from the stocklist. so the stocklist in the only list that is able to receive or remove items.

    i hope i explained this right.

  8. #8
    yorrdii is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2020
    Posts
    7
    for example. we receive an item (blank item) we give it a barcode 12345. that barcode is then added to the inbound list for recording and that exact number (12345) should be directly copied to the stocklist, like instant.

    when we ship that item we put that barcode (12345) on the outbound list. then 12345 should be removed from stocklist, instant.

  9. #9
    yorrdii is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2020
    Posts
    7
    For the 3 different tables.

    we need to send the company 3 files.
    What we received
    What went out
    what is currently in stock.

  10. #10
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    How about supplying some sample for inbound, and outbound.
    In a typical inventory/stock management application there are Customers, Supplier, Items/Products, ProductType etc. But, since your situation seems not so typical, some more details would be helpful. Forum members will help, but need to understand what you are trying to do.

    What happens if there is insufficient X in stock to satisfy a request?
    Sample data will help communications.

    UPDATE:

    I was writing my response while you were adding 2 posts.
    In the 12345 example, what do you do with an inbound item other than putting on a barcode?
    If you get 25 of 12345 and output only 20, what happens?
    Do you always transfer all of the inbound to outbound?
    What other conditions exist?

    Typical approach:

    Inbound---->(add/positive/+ quantities to) -->Current Stock
    Outbound--->(minus,negative/- quantities from) -->Current Stock.

    Did you look at the reference link I posted?

  11. #11
    yorrdii is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2020
    Posts
    7
    Here are the files. maybe it works out.

    that is what we use right now.

    every box has its own barcode which is unique.
    quantity is always set to 1. we cant have a 30 barcodes 12345 for example.
    Attached Files Attached Files

  12. #12
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    Is this your first Access project?
    You should research Normalization --key concept with database.
    You may have some hidden entities (Pallet...)?
    There are many duplicated fields across your proposed tables.
    For Access, you should not use names with embedded spaces.

    For your own knowledge and experience, I recommend that you work through 1 or 2 or the tutorials from RogersAccessLibrary mentioned in the Database Planning and Design link in my signature. If you work through 1 or 2 of the tutorials, you will learn about tables and relationships. Each tutorial will take about 45 minutes--BUT you will learn and experience a procedure that can be used with any database. Best 45 minutes you'll spend learning about databases.
    Good luck.
    Last edited by orange; 08-29-2020 at 07:00 AM. Reason: spelling

  13. #13
    yorrdii is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2020
    Posts
    7
    Quote Originally Posted by orange View Post
    Is this your first Access project?
    You should research Normalization --key concept with database.
    You may have some hidden entities (Pallet...)?
    There are many duplicated fields across your proposed tables.
    For Access, you should not use names with embedded spaces.

    For your own knowledge and experience, I recommend that you work through 1 or 2 or the tutorials from RogersAccessLibrary mentioned in the Database Planning and Design link in my signature. If you work through 1 or 2 of the tutorials, you will learn about tables and relationships. Each tutorial will take about 45 minutes--BUT you will learn and experience a procedure that can be used with any database. Best 45 minutes you'll spend learning about databases.
    Good luck.

    Yes this is my very first access project.
    i will look at the tutorials Thanks!!!

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

Similar Threads

  1. IIf / And formula
    By andydarly in forum Queries
    Replies: 9
    Last Post: 03-08-2017, 08:41 AM
  2. Replies: 19
    Last Post: 07-13-2015, 10:15 AM
  3. Replies: 41
    Last Post: 05-29-2015, 02:58 PM
  4. Q: Help with a formula
    By TroxlSha in forum Access
    Replies: 3
    Last Post: 10-12-2012, 08:50 AM
  5. Formula
    By hschrunk in forum Access
    Replies: 3
    Last Post: 05-18-2010, 01:40 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