Results 1 to 2 of 2
  1. #1
    lostsocks is offline Novice
    Windows XP Access 2002
    Join Date
    Nov 2009
    Posts
    1

    An Odd Error

    Howdy,
    I'm trying to do something that should be fairly simple,
    I have three fields in one of my tables
    Price (Currency)
    Quantity (number)
    Total Price (Currency)



    I want the default value of Total Price to be =[Quantity]*[Price] but whenever I add the formula I get the error message:

    The Database Engine does not recognise either the field 'Quantity' in a validated expression or the default value in the table 'Orders'

    I've tried changing the fields so that they are all numbers rather than currency, but this doesn't help.

    I'm probably doing something absurdly silly and obvious wrong... but I can't for the life of me see what it is

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    You do not store calculations in a table. You would use a query to represent them.

    Qty:[Quantity]*[Price]

    David

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

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