Results 1 to 5 of 5
  1. #1
    ctpaulm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Posts
    2

    8 Records in Table - Query returns 2 records. Formula to subtract each Qty and add to a new table

    Hi, I'm in waaay over my head. I know some basics, but I need a little help to move forward! This is a "Cash Register" (Point of Service/POS), "Inventory", "Contacts", "Supplies", "Expenses", etc...

    In POS Table, Style Code became a Lookup Column (did I do that?)
    In Inventory Table, 8 records listed. Query of Inventory returns Record 1 and 7. ???
    Last Name, Style Code and Description are not correct. I have a relationship under the Style Code & Desc, and I'm not allowed to change these controls (can do it thru relationships?) I've been hurting my brain over this, for hourssssss! Thank you!!
    In regards to Inventory, I would like the Primary Key, Style Code be decreased by number (Qty) field in the Inventory Table, and have it create new Field "SOLD". In other words, as the QTY on the POS Table decreases, it should reflect on the Inventory Table.... BUT no relationship the other way around (can add into Inventory Form, but do not have it add to any POS data.



    ANY guidance is greatly appreciated!!!
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Should not save aggregate data to table. Inventory balance should be calculated when needed.

    Enter raw data records of inventory received and inventory used, sum the data and calculate difference.
    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
    ctpaulm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Posts
    2
    Thank you June7!! So I will let the POS Form drive the whole system, and manually enter inventory, each with unique StyleCode. Won't it still need to be defined in the inventory table (first)? I know what we're selling, so I can list out the items, and when it comes to a sale, I would select the StyleCode (primary) that matches up with Description from a dropdown. INSTEAD of having Access work it, go into Inventory and manually delete/change the Qty('s)? That sounds fine if I understand correctly, I just thought I could automate that.

    I still have the issue of the StyleCode, which became Style Code Lookup Column. Same with Description. I obviously did something, but I don't know. Trial and error! These fields can not be changed because they belong to relationships. I don't see any, but maybe I'm looking in the wrong area...

    I'm so sorry for my questions as they may not make sense.. I only used Access before for my Xmas Card Labels!! lol

    Thanks, Paul

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    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
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    ctpaulm,

    You might want to review and work through this tutorial from RogersAccessLibrary.
    It will help with database design, tables and relationships. You can use what you learn with your own database.
    Getting the proper design to support your business is critical to database.

    You should also read and understand Normalization (tutorial starts here).

    Good luck.

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

Similar Threads

  1. Replies: 3
    Last Post: 05-14-2015, 04:17 PM
  2. SELECT TOP 10 Query returns 12 records
    By Paul H in forum Queries
    Replies: 8
    Last Post: 09-11-2013, 03:38 PM
  3. Replies: 3
    Last Post: 08-22-2012, 05:24 PM
  4. Replies: 2
    Last Post: 12-20-2011, 07:33 AM
  5. Replies: 0
    Last Post: 02-24-2010, 12:56 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