I am in the process of developing at property database.
In the course of building various forms, I find myself having to build the same calculated fields in various queries time and time again. This becomes onerous and of course difficult to change throughout the database if necessary.
For example I will use the client name on numerous different forms using different queries and will have to concatenate something like the string below each time....
ie. [ClientTitle] & " " & [ClientFirstName] & " " & [ClientSurname] (The actual concatenation is much longer, but you will get the idea).
Access 2013 gives the option of using a calculated field at table level. Initially this looked great, in that I could build the calculated strings once at table level and then refer to them from anywhere in the database. Great for ease of use and future maintenance if necessary.
After researching a little more however, it seems that using calculated fields at table level is frowned upon by developers and it also suggested that should the expression change, then some records may not be updated correctly (although I can not replicate this).
I would welcome input as to the pro's and cons of using calculated fields and any real world experiences.
I understand that SQL server also has a calculated field at table level and so I'm surprised that its considered by some as a no go feature.
I am hoping to eventually move the back end to SQL server a year or so down the line if this has implications?
Many thanks as always - Mark
In the course of building various forms, I find myself having to build the same calculated fields in various queries time and time again. This becomes onerous and of course difficult to change throughout the database if necessary.
For example I will use the client name on numerous different forms using different queries and will have to concatenate something like the string below each time....
ie. [ClientTitle] & " " & [ClientFirstName] & " " & [ClientSurname] (The actual concatenation is much longer, but you will get the idea).
Access 2013 gives the option of using a calculated field at table level. Initially this looked great, in that I could build the calculated strings once at table level and then refer to them from anywhere in the database. Great for ease of use and future maintenance if necessary.
After researching a little more however, it seems that using calculated fields at table level is frowned upon by developers and it also suggested that should the expression change, then some records may not be updated correctly (although I can not replicate this).
I would welcome input as to the pro's and cons of using calculated fields and any real world experiences.
I understand that SQL server also has a calculated field at table level and so I'm surprised that its considered by some as a no go feature.
I am hoping to eventually move the back end to SQL server a year or so down the line if this has implications?
Many thanks as always - Mark