Results 1 to 5 of 5
  1. #1
    Tuckerbox2081 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    3

    Updating a feild in a table from a Query

    I have a number hat has been caluated in a qury which I want to be kept in a feild in a table. I need help to work this out and Kept it K.i.s.s

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Why do you need to store it in a table if it can be calculated in a query?
    It actually usually goes against the rules of Database Normalization to store anything that can be calculated at the table level.
    If it can be calculated in a query, there is usually no reason to store it at the table level (unless you are creating some sort of historical archive).

  3. #3
    Tuckerbox2081 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    3
    I have a auto number set up that I want to show on a form. This will be a ref number for the info inputted the ref number looks lick this S44/14/001.I would like to recoed this with the info in the table.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,631
    How are you calculating this in a query? You are simply concatenating 3 fields? Again, no reason to save this calculated value. But if you must save, run an UPDATE query
    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.

  5. #5
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Note that Forms can have Queries as their control source as well as Tables.
    Actually, pretty much anything that you use Tables for (Forms, Report, exports), you can use Queries for.
    Which is why it usually isn't necessary to store anything in a Table that can be calculated in a Query.
    There are instances in which you might need to store a calculation in a Table, but those are usually pretty rare.

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

Similar Threads

  1. unable to append a feild to a backend table
    By markjkubicki in forum Programming
    Replies: 2
    Last Post: 02-11-2013, 04:34 PM
  2. Replies: 1
    Last Post: 05-24-2012, 03:29 AM
  3. Replies: 3
    Last Post: 12-09-2011, 11:55 AM
  4. Replies: 3
    Last Post: 11-24-2011, 10:07 AM
  5. Replies: 2
    Last Post: 03-14-2010, 07:27 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