A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

mde



 
 
Thread Tools Display Modes
  #1  
Old May 21st, 2010, 10:00 AM posted to microsoft.public.access
Nick 'The Database Guy'
external usenet poster
 
Posts: 33
Default mde

Hi Everybody,

Does anyone know if there is a way of saving an access mdb as a .mde
file using code, if there is I would be very grateful of some pointers
in the right direction on how it is done.

Kind regards,

Nick
  #2  
Old May 21st, 2010, 10:24 AM posted to microsoft.public.access
Bernd Gilles
external usenet poster
 
Posts: 19
Default mde

Nick 'The Database Guy' schrieb:
Does anyone know if there is a way of saving an access mdb as a .mde
file using code, if there is I would be very grateful of some pointers
in the right direction on how it is done.


http://www.trigeminal.com/lang/1031/...asp?ItemID=8#8

or

SysCmd 603 , "YourMdb", "YourMde"

maybe you have to use a new access-instance for this

Dim AccApp As Access.Application
Set AccApp = CreateObject("Access.Application")

AccApp.SysCmd 603 , "YourMdb", "YourMde"

Set AccApp = Nothing

--
regards, Bernd
---
Access goes Subversion - http://oasis.dev2dev.de
  #3  
Old May 21st, 2010, 11:29 AM posted to microsoft.public.access
Nick 'The Database Guy'
external usenet poster
 
Posts: 33
Default mde

On May 21, 10:24*am, Bernd Gilles wrote:
Nick 'The Database Guy' schrieb:

Does anyone know if there is a way of saving an access mdb as a .mde
file using code, if there is I would be very grateful of some pointers
in the right direction on how it is done.


http://www.trigeminal.com/lang/1031/...asp?ItemID=8#8

or

SysCmd 603 , "YourMdb", "YourMde"

maybe you have to use a new access-instance for this

Dim AccApp As Access.Application
Set AccApp = CreateObject("Access.Application")

AccApp.SysCmd 603 , "YourMdb", "YourMde"

Set AccApp = Nothing

--
regards, Bernd
---
Access goes Subversion -http://oasis.dev2dev.de


Thankyou Bernd,

I took your code, inserted appropriate in place of "YourMdb" and
"YourMde" and was pleased when it compiled and even more pleased when
it ran without falling over, but I was a little disappointed when it
failed to create anything! And ideas where I might be going wrong?

Nick
  #4  
Old May 21st, 2010, 01:12 PM posted to microsoft.public.access
Bernd Gilles
external usenet poster
 
Posts: 19
Default mde

Nick 'The Database Guy' schrieb:
I took your code, inserted appropriate in place of "YourMdb" and
"YourMde" and was pleased when it compiled and even more pleased when
it ran without falling over, but I was a little disappointed when it
failed to create anything! And ideas where I might be going wrong?


you can only use this to make an mde from another mdb.
have you tried to make a mde from your currently running mdb?

then you should use the tool from trigeminal - you can't make an mde from your active mdb via code.

--
regards, Bernd
---
Access goes Subversion - http://oasis.dev2dev.de
  #5  
Old May 21st, 2010, 01:30 PM posted to microsoft.public.access
Daniel Pineault
external usenet poster
 
Posts: 658
Default mde

Nick,

Your original post had already been answered yesterday.

http://www.microsoft.com/office/comm...f-398efbfc3be7
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.



"Nick 'The Database Guy'" wrote:

Hi Everybody,

Does anyone know if there is a way of saving an access mdb as a .mde
file using code, if there is I would be very grateful of some pointers
in the right direction on how it is done.

Kind regards,

Nick
.

  #6  
Old May 24th, 2010, 12:44 AM posted to microsoft.public.access
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default mde

Bernd Gilles wrote:

Does anyone know if there is a way of saving an access mdb as a .mde
file using code, if there is I would be very grateful of some pointers
in the right direction on how it is done.


http://www.trigeminal.com/lang/1031/...asp?ItemID=8#8

or

SysCmd 603 , "YourMdb", "YourMde"

maybe you have to use a new access-instance for this


No, you don't need a new access instance. However you can't be
running the code from the database you wish to make the MDE. You have
to run it from an external "utility" mdb.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.