"WindAndWaves" <ac****@ngaru.com> wrote in message news:<Km*******************@news.xtra.co.nz>...
no, how would i do that?
Thank you for your answer James
Microsoft KB Article 222101:
http://support.microsoft.com/default...01&Product=acc
suggests resources for doing Automation. You need to see a picture of
Access' Object Model for the version of Access you are using. Allen
Browne's DAO Object Model image is also potentially useful:
http://members.iinet.net.au/~allenbrowne/ser-04.html
Automation should be able to handle the two cases you mention. For
2), you should grab the 'current database' from another database that
does the automation and handles closing it, renaming it, copying the
new one to the old location and opening the new one. If finding the
'current database' causes you trouble, try opening the 'current
database' originally from the other database and keep a handle of that
instance. Note that automating Access is trickier than automating
other Office products since they have the ability to record actions
and produce VBA code corresponding to those actions. Someone familiar
with coding VBA in Access should be able to figure it out anyway.
James A. Fortune