W
Willow
Hi
I am currently trying to automate a number of databases so that they
can be run 'at the push of a button'.
The first of these databases contains my master tables which are raw
downloads from and antiquated mainframe system. The data comes down in
text file format which is then imported into Access Tables. I then run
a number of update queries against the tables to convert dates and
codes etc into meaningful data.
Previously I have run these update queries manually but now intend to
use a number of macros to be able to run them at the push of a button.
I am mainly using the OpenQuery function.
However, while this is fine for most of the update queries, there are
a number of queries where the Update to information needs updating
before the query is run.
Basically the update to works out the age of the person at the end of
the month:
Int(((#31/03/2007#-[Master table - CIS Assessments]!DOB))/365.25)
Obviously the date needs changing each month before the update query
can be run.
Is there a way of doing this with a macro or does it need to be
coded?
Thanks
Helena
I am currently trying to automate a number of databases so that they
can be run 'at the push of a button'.
The first of these databases contains my master tables which are raw
downloads from and antiquated mainframe system. The data comes down in
text file format which is then imported into Access Tables. I then run
a number of update queries against the tables to convert dates and
codes etc into meaningful data.
Previously I have run these update queries manually but now intend to
use a number of macros to be able to run them at the push of a button.
I am mainly using the OpenQuery function.
However, while this is fine for most of the update queries, there are
a number of queries where the Update to information needs updating
before the query is run.
Basically the update to works out the age of the person at the end of
the month:
Int(((#31/03/2007#-[Master table - CIS Assessments]!DOB))/365.25)
Obviously the date needs changing each month before the update query
can be run.
Is there a way of doing this with a macro or does it need to be
coded?
Thanks
Helena