Results 1 to 3 of 3
  1. #1
    plastikman808 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    5

    Calculated Field

    Hi,

    I have 2 tables, 1 called [Products] that lists all the products that are available for sale with the Primary key as the ProductCode. The 2nd table is [SalesReceipt]. A field in the [SalesReceipt] is the Product name from the [Products] table.

    Can i use the calculated field to do some sort of SELECT query that will pull this data in automatically once the user has put in the product code?




    I tried this, but the Syntax is wrong...do i need to do an Append query of some sort?


    Click image for larger version. 

Name:	Untitled.png 
Views:	3 
Size:	182.0 KB 
ID:	13143




    Thanks in advance for any help
    Attached Thumbnails Attached Thumbnails Untitled.png  

  2. #2
    plastikman808 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    5
    ignore the bottom screen shot

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,642
    No, cannot use calculated field like that. Calculated field is for simple calculations of other fields, like: [Quantity] * [Price]

    Can each sale have multiple products? If yes, you need a related child table, SaleDetails, to store a record for each product associated with that sale. Use form/subform arrangement for data entry.
    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: 1
    Last Post: 04-21-2013, 03:20 PM
  2. Replies: 3
    Last Post: 02-13-2013, 10:15 AM
  3. Calculated Field
    By abernut in forum Access
    Replies: 30
    Last Post: 02-05-2013, 07:01 AM
  4. Calculated Field
    By MikeDBMan in forum Database Design
    Replies: 1
    Last Post: 03-26-2012, 03:06 PM
  5. Calculated field
    By nashr1928 in forum Forms
    Replies: 9
    Last Post: 08-01-2010, 01:59 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