Results 1 to 2 of 2
  1. #1
    bishop0071 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    24

    Calculations in a query

    Hello,

    I have field [Cardio], which hold numbers. In my database I only allow 16 points for that field. The week are from Saturday-Friday.


    1). Right now I created another field, [16PointCardioMax], and just put in how many ponts they have left for the week. Example, if [Cardio] for week adds up to 8, then in [16PointCardioMax], I would type in 8 points left. Is there a formula that I can use to automate this for me? I tried Cardio Max: 16-[16PointCardioMax] as an expression but that does not work.

    2.) Is there a way to clear that field, [16PointCardioMax], once the week is up?

    3.) I just want that equation to work for the current week. So this current week is from Saturday, Jan. 26th - Friday, Feb. 1st.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    1. Why doesn't the expression work - what happens?

    2. & 3. An expression in query cannot do this - would require VBA code behind some event.
    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. Conditional calculations in a query?
    By Datech in forum Queries
    Replies: 3
    Last Post: 06-17-2012, 09:39 PM
  2. Form calculations in query
    By bkirsch in forum Queries
    Replies: 5
    Last Post: 02-24-2012, 04:45 PM
  3. Parameter Query Calculations
    By mrk7891 in forum Queries
    Replies: 2
    Last Post: 11-04-2011, 04:33 PM
  4. Calculations in Query
    By jdhaldane in forum Queries
    Replies: 5
    Last Post: 12-10-2010, 05:57 AM
  5. MSACCESS Query with calculations?
    By Masterfinn in forum Queries
    Replies: 10
    Last Post: 02-24-2010, 10:51 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