Results 1 to 6 of 6
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    writing a concatination field


    Hi

    I Have two fields WitnessesBride and witnessesGroom which I watn to combine.

    I know from the helpfile I can use in a table definitions

    Code:
    Witnesses: [WitnessesBride] &" " [WitnessesGroom]
    But I'm assuming this makes the field witnesses a "calculated" field?

    Is there any advantage or reason to convert this into a concrete value - if you follow? rather than use the calculation all the time?

    thanks

    Ian

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    It does make it a calculated field, but I suggest you not use it. Instead, just use the concatenation when you need it, i.e. a form, report or query. It's better practice and gives you more flexibility.

  3. #3
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Hi

    thanks for the advice

    Ian

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Actually, you do NOT want to store it as a calculated field. Doing so can violate the Rules of Normalization and undermine the integrity of your database (i.e. what if you changed one of the underlying values down the road, then your "calculation" does not match the data elements).

    A good rule of thumb is the following: Never store anything that can be calculated without too much trouble!

    As John mentioned, the calculations can be done "on-the-fly" in your queries, reports, forms, etc.
    I do most of mine in queries. And you can use queries for pretty much anything that you use tables for (exports, data sources for report & forms, etc.)

  5. #5
    mrmmickle1's Avatar
    mrmmickle1 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Location
    North Carolina
    Posts
    78
    OI wouldn't make a calculated table field. You can easily concatenate those fields in a query.

    i.e.
    [WitnessBride] & [WitnessGroom] AS Expr1

  6. #6
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Thanks one and all

    Ian

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

Similar Threads

  1. Code writing
    By Obidombie in forum Forms
    Replies: 1
    Last Post: 02-11-2016, 04:11 AM
  2. How do I transfer or writing of this
    By azhar2006 in forum Reports
    Replies: 7
    Last Post: 07-27-2014, 01:55 PM
  3. Email Writing
    By drunkenneo in forum Programming
    Replies: 3
    Last Post: 07-09-2013, 07:30 AM
  4. Replies: 7
    Last Post: 05-31-2011, 11:51 AM
  5. Force writing from the right in a field?
    By Looping in forum Forms
    Replies: 0
    Last Post: 01-23-2006, 03:03 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