Results 1 to 5 of 5
  1. #1
    Vibhor is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    2

    Exclamation Expression Builder Help

    Hey
    I need help in the following scenario:

    Table: EmployeeDetails
    EmployeeName DailyWage Attendance Salary

    Form:EmployeeForm
    EmployeeName DailyWage Attendance Salary

    Now, when i open this form, I enter details as:
    XYZ 180 30

    Now I want that the form should calculate and store the value automatically. So in Control Source of Salary i wrote =[DailyWage]*[Attendance]
    Its displaying the multiplication correctly but not storing in the database. Pls guide me how to do so.


    Vibhor

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    Storing calculated data is usually unnecessary and often a bad idea. This value can be calculated when needed. Storing the calculated data will require code.
    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.

  3. #3
    Vibhor is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    2
    This problem has been simplified for asking. But what if there is a need to store this value?

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,728
    I recommend you work through this tutorial. It will lead you through the processes of database design, normalization and relationships.

    Good luck with your project.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    Use code. I use only VBA but macro can do same with SetValue.

    The real trick is figuring out what event to put the code in, perhaps in a button that closes the form (then you really should disable the form X close).

    Me!Salary = Me.Salary
    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: 2
    Last Post: 11-20-2012, 03:21 AM
  2. Expression builder help
    By jigg14 in forum Forms
    Replies: 1
    Last Post: 03-19-2012, 09:47 AM
  3. Expression Builder not there
    By schnuber in forum Access
    Replies: 1
    Last Post: 02-17-2012, 01:17 AM
  4. Expression Builder or VB ... Help
    By Adynn in forum Access
    Replies: 0
    Last Post: 06-03-2011, 09:51 AM
  5. Expression builder
    By PJ_d_DJ in forum Access
    Replies: 2
    Last Post: 02-24-2011, 03:38 AM

Tags for this Thread

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