Results 1 to 2 of 2
  1. #1
    prawln is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Mar 2011
    Posts
    7

    Divide two Fields, Total in another field


    Hey guys,

    Been googling for ages and I just can't seem to figure this out!

    Im making a currency converter and all i need to do is divide the price by
    the exchange rate which gives the answer.

    USPrice = the price of items
    USCurrency = the current US to NZ exchange rate.
    USPriceNZ = the NZ price of the item after the exchange

    How to i go about this? USPrice and USPriceNZ are in the table and USCurrency
    is just a text box so i can add the current exchange rate when i check the
    website for it.

    Reason i did this was because when I added USCurrency in the table it kept
    wanting me to add the currency rate for every single items in it (theres
    multiple)

    I hope this makes sence.. if not then i fail lol cheers guys!

  2. #2
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    So basically you have multiple USPrice and USPriceNZ records in which you want to perform some calculation on 1 or all of them where the value used in that calculation is controlled by an unsaved integer value entered on the form?

    If you want the value you enter on the form to be saved, you could consider saving this value in the same table as USPrice and USPriceNZ. Otherwise there isn't any way to back-trace the computed calculation if you need to. If you don't care about how the calculation is derived, then I'd leave it as is. I do the same thing for some reports.

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

Similar Threads

  1. Grand Total Field ???
    By damo1995 in forum Forms
    Replies: 6
    Last Post: 02-10-2011, 02:43 PM
  2. Replies: 0
    Last Post: 03-18-2010, 01:31 PM
  3. total many fields by function
    By thetuyen in forum Access
    Replies: 2
    Last Post: 03-08-2010, 08:43 PM
  4. Replies: 1
    Last Post: 04-09-2009, 09:18 AM
  5. Total Number of Fields allowed on a Form
    By tpearo in forum Forms
    Replies: 1
    Last Post: 12-15-2005, 06:57 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