Results 1 to 2 of 2
  1. #1
    Balen is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    13

    numbers

    Hi How are you?
    Am happy that i register my name here I think this will be usefull
    I want to create a database to manage company tasks

    my question is:
    I have 1000 RAM when i sale 10 RAM of them the field change to 990 automatically
    how can cretae relation to this


    the second is:
    I want to create field to store all items that i have (RAM, HDD, CPU, .. etc)
    and on the table that i enter data i want to create lookup to items
    Help Please

    thank you very much

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    tblProducts
    ProdID(PK)
    ProdName
    ProdDesc
    ProdQty
    1
    |
    |
    M
    tblLineItem
    LineID(PK)
    ProdID(FK)
    InvoiceID(FK)
    InvoiceQty
    M
    |
    |
    1
    tblInvoice
    InvoiceID(PK)
    InvoiceDate
    ...

    The above is the relevant table design you should have. This is ignoring customer information which would be joined to your Invoice table but is not shown. When you have a sale, you will create a form that enters the sale. When you enter in the qty, you will run an update query
    UPDATE tblProduct SET ProdQTY = tblProduct.ProdQty - tblInvoice.InvoiceQty

    That will update your Product table.

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

Similar Threads

  1. Record Numbers
    By nashr1928 in forum Forms
    Replies: 7
    Last Post: 06-26-2010, 07:58 PM
  2. Record numbers
    By nashr1928 in forum Reports
    Replies: 2
    Last Post: 06-25-2010, 03:58 PM
  3. Random numbers
    By Gator777 in forum Access
    Replies: 3
    Last Post: 08-12-2009, 10:04 AM
  4. Rounded Numbers
    By TundraMonkey in forum Access
    Replies: 3
    Last Post: 08-11-2009, 12:19 PM
  5. Set Numbers equal to each other
    By ygu3 in forum Access
    Replies: 1
    Last Post: 07-16-2009, 07:34 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