Hi
I've found this article on
http://support.microsoft.com/kb/q202039/
I tried this but its opening dialog box asking to save mde and then keep asking to SaveAs
Microsoft explain it very simple but implementation is just like microsoft itself :)
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
Any idea, suggestion, advice
regards
Ayaz