Results 1 to 3 of 3
  1. #1
    LanieB is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    54

    Thumbs up Need to update a field to '0' that is running off a query


    HELLO!

    I have a form we are entering scores into. The points available depend on how many bills there were. In a query I have the points available for that element multiplying by the number of bills. In the form I need the user to be able to 0 out this field in the case that element is not applicable. Right now it appears like

    Points Available: [element]*[numberofbills]

    Is there something else I can write in there to let it know that a 0 is acceptable as well? In the entry form this field if locked and will not allow me to 0 it out.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I think this will help:

    http://allenbrowne.com/casu-14.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If "Point Available" is a calculated field in a query, you can hard-code numbers into it. Hard-coded numbers can only be stored in underlying table fields.
    You could add another field to your table, some sort of override field, and then have htem update that, and have your calculated field include that in its calculation, i.e.
    Code:
    Points Available: IIF([override]=0,[element]*[numberofbills],0)

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

Similar Threads

  1. Replies: 3
    Last Post: 04-12-2012, 05:09 PM
  2. Running an Update Query from a Macro
    By michaelb in forum Queries
    Replies: 7
    Last Post: 06-02-2011, 09:46 PM
  3. Running an update query
    By markod in forum Queries
    Replies: 3
    Last Post: 11-11-2010, 01:24 PM
  4. Running update query in access 2010
    By dbansal in forum Queries
    Replies: 1
    Last Post: 09-03-2010, 10:57 AM
  5. Help Automatically running and Update Query
    By JohnRandolphSTL in forum Queries
    Replies: 8
    Last Post: 04-13-2010, 02:08 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