Mike Painter said:
The only "review" I've seen talks about Access allowing calculated fields.
Is this the same as data macros I can find info on?
Can it be done with code?
Calculated fields are available for web based applications, and also for
100% (VBA) desktop only applications. This new feature is NOT related to
web, or desktop at all. And, the calculated fields are not related to data
macros either. It is simply a new "column" or field type we have.
A good use of calculated fields would be for example to create a FullName
field like:
Fullname: [FirstName] & " " & [LastName]
This above field is built at the table level. Once you create this column,
then every form, report, query can use that column just like a regular
field.
What is really neat here is down the road after you built 14 queries, 8
reports and 1/2 dozen reports all using that FullName field, you can change
the above ONE Fullname field to add the person middle initial, and
Everything in the application that uses full name field now will enjoy this
new updated expressions such as
Fullname: [FirstName] & " " & "[Middle] & " " & [LastName]
So this is just a new feature that allows you to centralize some of your
expressions into the table as opposed to queries and code and forms. in any
designer or query build that you use, you'll just see the additional full
name column up here in the table design mode. It looks just like another
field in the table...
In that web application video of mine, I think I did use one calculated
field for staff Full name, but it certainly was not a requirement..
So at the end of the day, that the handy new calculated column is neat new
feature. However, this feature as mentioned is not restricted to web based
applications, nor is it restricted to desktop based applications, and nor is
this feature really related or has anything to do with data macros.
I talk about data macros here in a post on stack overflow:
http://stackoverflow.com/questions/1159394/data-macros-in-access2010-triggers/1162969#1162969
Can it be done with code?
Hum, no, code is not related to calculated columns. However, to create a web
application, you have to use the macro coding language. (forms with VBA
don't publish to the web). The desktop Application can have a mixed of VBA
forms, and web based forums.
Here is a video from channel 9:
Access Web Databases and The Access Show
http://channel9.msdn.com/shows/Access/Microsoft-Access-2010-Demo/
The new table triggers we have for access 2010 work both desktop, and for
web based applications you build in access...