ACC: OpenDatabase and CloseDatabase Pseudo ActionsID: Q100148
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
Microsoft Access includes two "pseudo actions," or dynamic data exchange
(DDE) commands, called OpenDatabase and CloseDatabase. These commands are
available through the DDE SYSTEM topic, and allow you to open and close
Microsoft Access databases over a DDE channel.
The syntax for the OpenDatabase and CloseDatabase pseudo actions is
OpenDatabase <Database_Location>
CloseDatabase
Cell Command
-------------------------------------------------
A1 PseudoOpenCloseDDEExample
A2
A3 chan=INITIATE("MSACCESS","SYSTEM")
A4 =APP.ACTIVATE("Microsoft Access",FALSE)
A5 =EXECUTE(chan,"[opendatabase northwind.mdb]")
NOTE: In versions 1.1 and 2.0, use =EXECUTE(chan,"[opendatabase
nwind.mdb]")
A6 =EXECUTE(chan,"[Sample AutoExec]")
A7 =EXECUTE(chan,"[closedatabase]")
A8 =TERMINATE(chan)
A9 =APP.ACTIVATE(,FALSE)
A10 =RETURN()
Additional query words: ole/dde server
Keywords : kbinterop
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: March 23, 1999