Results 1 to 3 of 3
  1. #1
    les@wilcock.plus.com is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    3

    Lookup choices controlling calculations

    Dear members, I would appreciate the help of the forum for what I suspect is a fairly simple task for an experienced programmer.



    First some basics, I am running Access 2010 on a Windows 7 platform and attempting to write a simple database for a local charity, and whilst I have basic skills in Access I would not put my level higher that enthusiastic amateur.

    The problem
    I have a couple of fields, one called 'Income' which is a simple currency field. The second field is called Frequency and is a combo field where the user can choose from Weekly; Monthly; Quarterly; or Annual.

    The database user enters data taken from a survey sheet which captures the income of an individual along with the frequency of the payment.

    The requirement
    I would like to create a calculated field which gives the annual income.
    Example:
    Income = $5,000 Frequency = Monthly
    the calculated field would return (5,000 x 12) = 60,000

    Equally
    Income = $1,000 Frequency = Weekly would return (1,000 x 52) = 52,000

    I suspect it might require VBA code would value any suggestions the members could give.

    Regards

    Les W

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    I would suggest to change your field Frequency to numeric type.
    Use a combo box (follow wizard which appears when you add a combo box to your form) having two columns.. Type the multiplication factor ( ex 12) in first and description (ex. Monthly) in second.Set column widths to 0;3. Set the Frequency field as control source of this combo box..The users will see the second column only and the multiplication factor will be stored in table. You can get the annual income by simply multiplying the Income and Frequency.

  3. #3
    les@wilcock.plus.com is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    3
    Dear Amrut

    Thanks for the simple and logical solution.

    Works fine

    Best Regards

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

Similar Threads

  1. Controlling PDFs
    By Rob.Hill in forum Access
    Replies: 3
    Last Post: 07-14-2014, 01:04 PM
  2. Controlling forms from more than one table
    By jaarons in forum Forms
    Replies: 4
    Last Post: 01-04-2013, 02:05 AM
  3. Help with form - list of choices
    By lios1984 in forum Access
    Replies: 11
    Last Post: 02-05-2012, 12:32 PM
  4. List of Choices
    By lios1984 in forum Access
    Replies: 4
    Last Post: 01-30-2012, 02:14 PM
  5. Controlling autonumber
    By Patience in forum Access
    Replies: 3
    Last Post: 06-22-2010, 04:11 AM

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