Results 1 to 3 of 3
  1. #1
    gunitinug is offline Novice
    Windows 10 Access 2007
    Join Date
    Aug 2017
    Posts
    23

    Calculated field over multiple tables linked by relationship

    I have two tables:

    stock_tbl:
    stockID | stockGroup | productRef | quantity



    and

    product_tbl:
    productID | productName | manufacturer | price

    I want to create a field by product_tbl.price * stock_tbl.quantity where productID is a primary key and linked to productRef.

    I tried googling and it doesn't seem to be possible to create a calculated field over multiple tables. Do I have to use other means like query? Help THX

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Do I have to use other means like query?
    Yes, you do have to use a query if you are dealing with fields from two or more tables. Actually, as much as possible, calculated fields should only be in queries, not tables.

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

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

Similar Threads

  1. Replies: 10
    Last Post: 03-22-2021, 07:59 AM
  2. Replies: 1
    Last Post: 05-22-2017, 05:59 AM
  3. Replies: 5
    Last Post: 12-05-2012, 10:42 AM
  4. Calculated field, data from multiple tables
    By Suzie2012 in forum Programming
    Replies: 7
    Last Post: 06-12-2012, 01:15 PM
  5. Replies: 5
    Last Post: 02-02-2012, 06:42 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