Results 1 to 2 of 2
  1. #1
    aaronmarsh632 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    1

    simple multiplication question

    Hi, I cant remember how to multiply 2 fields together.



    I have a field called quantity, and a field called unitprice. then in the total price field i put for the default value

    [Quantity]*[UnitPrice]

    but this is obviously incorrect, and i cant find the answer anywhere

    thanks

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    What makes you think this incorrect?

    The default value should be

    =Val(Nz([Field1],0))*Val(Nz([field2],0))

    I have added 2 elements, 1 to convert the contents to numeric values and another to replace a null value with 0 as something times nothing will raise an error.

    David

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

Similar Threads

  1. Simple combo box question
    By laqa in forum Queries
    Replies: 9
    Last Post: 08-03-2009, 08:32 AM
  2. Very simple question!
    By fiddley in forum Programming
    Replies: 2
    Last Post: 04-28-2009, 02:16 AM
  3. Simple but hard question
    By andymok in forum Reports
    Replies: 1
    Last Post: 09-20-2007, 09:19 AM
  4. Should be simple Query Question
    By brj1 in forum Queries
    Replies: 2
    Last Post: 03-04-2006, 01:11 PM
  5. Probably a simple report question
    By gmurrie in forum Reports
    Replies: 1
    Last Post: 12-28-2005, 09:19 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