PC Review


Reply
Thread Tools Rate Thread

Create MDE programatically

 
 
GeorgeMar
Guest
Posts: n/a
 
      31st May 2004
Does anyone know how to create an MDE through VBA? I
can't find any docs.

regards
george
 
Reply With Quote
 
 
 
 
Paul Overway
Guest
Posts: n/a
 
      1st Jun 2004
It isn't documented, but this works

Dim x as New Access.Application

On error resume next

Kill strFileOut

x.SysCmd 603, strFileIn, strFileOut

The last 2 parameters are the file path for the MDB and MDE respectively.
Note you need to Kill strFileOut in the event that it already exists.

--
Paul Overway
Logico Solutions, LLC
www.logico-solutions.com


"GeorgeMar" <(E-Mail Removed)> wrote in message
news:15bed01c44761$42e35110$(E-Mail Removed)...
> Does anyone know how to create an MDE through VBA? I
> can't find any docs.
>
> regards
> george



 
Reply With Quote
 
GeorgeMar
Guest
Posts: n/a
 
      1st Jun 2004
Thank you Paul!

Since it is not documented, is it safe?

many thanks
george

>-----Original Message-----
>It isn't documented, but this works
>
>Dim x as New Access.Application
>
>On error resume next
>
>Kill strFileOut
>
> x.SysCmd 603, strFileIn, strFileOut
>
>The last 2 parameters are the file path for the MDB and

MDE respectively.
>Note you need to Kill strFileOut in the event that it

already exists.
>
>--
>Paul Overway
>Logico Solutions, LLC
>www.logico-solutions.com
>
>
>"GeorgeMar" <(E-Mail Removed)> wrote

in message
>news:15bed01c44761$42e35110$(E-Mail Removed)...
>> Does anyone know how to create an MDE through VBA? I
>> can't find any docs.
>>
>> regards
>> george

>
>
>.
>

 
Reply With Quote
 
Paul Overway
Guest
Posts: n/a
 
      1st Jun 2004
Works for me...never had a problem. You need to use the code outside of the
MDB you are trying to compile though.

--
Paul Overway
Logico Solutions, LLC
www.logico-solutions.com


"GeorgeMar" <(E-Mail Removed)> wrote in message
news:15ee701c44773$8e580200$(E-Mail Removed)...
> Thank you Paul!
>
> Since it is not documented, is it safe?
>
> many thanks
> george
>
> >-----Original Message-----
> >It isn't documented, but this works
> >
> >Dim x as New Access.Application
> >
> >On error resume next
> >
> >Kill strFileOut
> >
> > x.SysCmd 603, strFileIn, strFileOut
> >
> >The last 2 parameters are the file path for the MDB and

> MDE respectively.
> >Note you need to Kill strFileOut in the event that it

> already exists.
> >
> >--
> >Paul Overway
> >Logico Solutions, LLC
> >www.logico-solutions.com
> >
> >
> >"GeorgeMar" <(E-Mail Removed)> wrote

> in message
> >news:15bed01c44761$42e35110$(E-Mail Removed)...
> >> Does anyone know how to create an MDE through VBA? I
> >> can't find any docs.
> >>
> >> regards
> >> george

> >
> >
> >.
> >



 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      1st Jun 2004
Depends on how you define "safe". Undocumented means it works now, but it
may not work in a new version of Access (where "new version" may include
service packs). On the other hand, there's little reason for Microsoft to
remove the ability.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"GeorgeMar" <(E-Mail Removed)> wrote in message
news:15ee701c44773$8e580200$(E-Mail Removed)...
> Thank you Paul!
>
> Since it is not documented, is it safe?
>
> many thanks
> george
>
> >-----Original Message-----
> >It isn't documented, but this works
> >
> >Dim x as New Access.Application
> >
> >On error resume next
> >
> >Kill strFileOut
> >
> > x.SysCmd 603, strFileIn, strFileOut
> >
> >The last 2 parameters are the file path for the MDB and

> MDE respectively.
> >Note you need to Kill strFileOut in the event that it

> already exists.
> >
> >--
> >Paul Overway
> >Logico Solutions, LLC
> >www.logico-solutions.com
> >
> >
> >"GeorgeMar" <(E-Mail Removed)> wrote

> in message
> >news:15bed01c44761$42e35110$(E-Mail Removed)...
> >> Does anyone know how to create an MDE through VBA? I
> >> can't find any docs.
> >>
> >> regards
> >> george

> >
> >
> >.
> >



 
Reply With Quote
 
GeorgeMar
Guest
Posts: n/a
 
      1st Jun 2004
Thank You both!

George
>-----Original Message-----
>Thank you Paul!
>
>Since it is not documented, is it safe?
>
>many thanks
>george
>
>>-----Original Message-----
>>It isn't documented, but this works
>>
>>Dim x as New Access.Application
>>
>>On error resume next
>>
>>Kill strFileOut
>>
>> x.SysCmd 603, strFileIn, strFileOut
>>
>>The last 2 parameters are the file path for the MDB and

>MDE respectively.
>>Note you need to Kill strFileOut in the event that it

>already exists.
>>
>>--
>>Paul Overway
>>Logico Solutions, LLC
>>www.logico-solutions.com
>>
>>
>>"GeorgeMar" <(E-Mail Removed)> wrote

>in message
>>news:15bed01c44761$42e35110$(E-Mail Removed)...
>>> Does anyone know how to create an MDE through VBA? I
>>> can't find any docs.
>>>
>>> regards
>>> george

>>
>>
>>.
>>

>.
>

 
Reply With Quote
 
Alp Bekisoglu
Guest
Posts: n/a
 
      1st Jun 2004
Hi Paul,

A quick question; is there a particular reason that you have used "On error
resume next" rather than a conventional error trapping routine?
O error GoTo ...._err
....
...._err:
MsgBox Error$
Resume ..._exit

I have adopted your advice to George into a function (works perfect!) and
was wondering if it would be better to include the above.

Thanks,

Alp

"Paul Overway" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Works for me...never had a problem. You need to use the code outside of

the
> MDB you are trying to compile though.
>
> --
> Paul Overway
> Logico Solutions, LLC
> www.logico-solutions.com
>
>
> "GeorgeMar" <(E-Mail Removed)> wrote in message
> news:15ee701c44773$8e580200$(E-Mail Removed)...
> > Thank you Paul!
> >
> > Since it is not documented, is it safe?
> >
> > many thanks
> > george
> >
> > >-----Original Message-----
> > >It isn't documented, but this works
> > >
> > >Dim x as New Access.Application
> > >
> > >On error resume next
> > >
> > >Kill strFileOut
> > >
> > > x.SysCmd 603, strFileIn, strFileOut
> > >
> > >The last 2 parameters are the file path for the MDB and

> > MDE respectively.
> > >Note you need to Kill strFileOut in the event that it

> > already exists.
> > >
> > >--
> > >Paul Overway
> > >Logico Solutions, LLC
> > >www.logico-solutions.com
> > >
> > >
> > >"GeorgeMar" <(E-Mail Removed)> wrote

> > in message
> > >news:15bed01c44761$42e35110$(E-Mail Removed)...
> > >> Does anyone know how to create an MDE through VBA? I
> > >> can't find any docs.
> > >>
> > >> regards
> > >> george
> > >
> > >
> > >.
> > >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create pdf programatically Tony Microsoft Access VBA Modules 3 16th Jul 2009 02:59 PM
Programatically Create Primary Key =?Utf-8?B?TWVsaXNzYQ==?= Microsoft Access 7 16th Jan 2006 05:31 AM
Create ASP.Net Page Programatically Mythran Microsoft VB .NET 6 9th Mar 2005 04:46 PM
Create a new account programatically: is possible? keysman Microsoft Outlook VBA Programming 1 27th Apr 2004 03:49 PM
Create a new account programatically: is possible? keysman Microsoft Outlook VBA Programming 0 26th Apr 2004 11:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:32 AM.