Results 1 to 6 of 6
  1. #1
    ridgeview80 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    5

    divide value by a constant and populate same field


    Hi Folks,

    Newbie... I am trying to divide a field [StandArea] (the values are currently in m2) by 10000 to get hectares. I want the result in the same field.

    Thanks

  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,641
    If you want to actually change the data, an update query:

    UPDATE TableName SET StandArea = StandArea/10000

    You might want to add the Round() function.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ridgeview80 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    5
    not clear on the directions. I am using 2007; below is pic of what I have done. I get a warning saying 0 records will be updated.

    Click image for larger version. 

Name:	query_pic.jpg 
Views:	12 
Size:	14.2 KB 
ID:	7809

    thanks again

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    What you have in the criteria should be in the Update To section. Or you can switch to SQL view, which is what I posted.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    ridgeview80 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2009
    Posts
    5
    thanks very much... that did it.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Happy to help.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 10-03-2011, 02:33 PM
  2. Divide two Fields, Total in another field
    By prawln in forum Access
    Replies: 1
    Last Post: 03-28-2011, 06:45 PM
  3. Replies: 2
    Last Post: 06-23-2010, 06:37 PM
  4. Replies: 1
    Last Post: 06-09-2010, 04:19 PM
  5. Replies: 0
    Last Post: 03-18-2010, 01:31 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