Results 1 to 3 of 3
  1. #1
    Eef is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2014
    Posts
    11

    Add a calculated fields in a Table

    I want to add a new field to my table. This field must become a default value which is the result of a Function (module).

    Something like this:
    fielda type text
    fieldb type text
    fieldc type text with default value =Function1([fielda];[field])

    I have an example for this with a From-field. But this does not work within a table.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Though Access added a feature that allows you to add Calculated Fields to tables, it doesn't necessarily mean its a good idea. Most other "real" database programs (like SQL) do not allow it. And most experienced programmers will not do it.

    In general it is best to place all calculated fields in queries. There usually is no need to have them at the table level (especially since you can use Queries the same as you would Tables, for Forms, Reports, exports, etc).

  3. #3
    Eef is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2014
    Posts
    11
    Quote Originally Posted by JoeM View Post
    Though Access added a feature that allows you to add Calculated Fields to tables, it doesn't necessarily mean its a good idea. Most other "real" database programs (like SQL) do not allow it. And most experienced programmers will not do it.

    In general it is best to place all calculated fields in queries. There usually is no need to have them at the table level (especially since you can use Queries the same as you would Tables, for Forms, Reports, exports, etc).
    I understand your arguments. I placed my field in a query. Thanks for the advise!

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

Similar Threads

  1. Replies: 12
    Last Post: 10-01-2013, 12:59 PM
  2. Replies: 1
    Last Post: 02-20-2013, 09:23 AM
  3. Replies: 5
    Last Post: 02-08-2013, 11:28 AM
  4. calculated fields appearing in table
    By jamhome in forum Access
    Replies: 16
    Last Post: 07-19-2011, 02:57 PM
  5. Replies: 1
    Last Post: 04-25-2011, 12:36 PM

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