Article ID: 195949
Article Last Modified on 1/23/2007
Function GenerateMDEFile(MyPath As String)
Dim NAcc As Access.Application
Set NAcc = CreateObject("Access.Application")
' The following lines simulate accepting the default
' name, clicking Make MDE, and clicking Save.
SendKeys MyPath & "{Enter}{Enter}"
SendKeys "{Enter}"
NAcc.DoCmd.RunCommand acCmdMakeMDEFile
Set NAcc = Nothing
End Function
Keywords: kbhowto KB195949