Connecting Tech Pros Worldwide Help | Site Map

How to open mdb in background?

  #1  
Old November 12th, 2005, 07:10 PM
deko
Guest
 
Posts: n/a
Is there a more efficient way to open an mdb to do stuff with it
programmatically? I'm using the below code to open another database and
inventory the form properties. I've got to open and close the database a
lot and I'm wondering if there's a better way to do it - and avoid all the
screen flashing.

Dim acc As Access.Application
Set acc = CreateObject("Access.Application")
Application.Echo False
acc.OpenCurrentDatabase varPath
acc.Visible = False
acc.DoCmd.OpenForm strName, View:=acDesign, WindowMode:=acHidden
Set frm = acc.Forms(strName)
[get form properties]
Application.Echo True


Thanks!


  #2  
Old November 12th, 2005, 07:10 PM
Tom van Stiphout
Guest
 
Posts: n/a

re: How to open mdb in background?


On Fri, 16 Jan 2004 03:29:01 GMT, "deko" <dje422@hotmail.com> wrote:

Keep it open, and send multiple commands to it.
-Tom.

[color=blue]
>Is there a more efficient way to open an mdb to do stuff with it
>programmatically? I'm using the below code to open another database and
>inventory the form properties. I've got to open and close the database a
>lot and I'm wondering if there's a better way to do it - and avoid all the
>screen flashing.
>
> Dim acc As Access.Application
> Set acc = CreateObject("Access.Application")
> Application.Echo False
> acc.OpenCurrentDatabase varPath
> acc.Visible = False
> acc.DoCmd.OpenForm strName, View:=acDesign, WindowMode:=acHidden
> Set frm = acc.Forms(strName)
> [get form properties]
> Application.Echo True
>
>
>Thanks!
>[/color]

  #3  
Old November 12th, 2005, 07:10 PM
deko
Guest
 
Posts: n/a

re: How to open mdb in background?


10-4

that would make sense...


"Tom van Stiphout" <tom7744@no.spam.cox.net> wrote in message
news:ksqe00pvm5lbrv2dp9df3sqgfs5e1pv95l@4ax.com...[color=blue]
> On Fri, 16 Jan 2004 03:29:01 GMT, "deko" <dje422@hotmail.com> wrote:
>
> Keep it open, and send multiple commands to it.
> -Tom.
>
>[color=green]
> >Is there a more efficient way to open an mdb to do stuff with it
> >programmatically? I'm using the below code to open another database and
> >inventory the form properties. I've got to open and close the database a
> >lot and I'm wondering if there's a better way to do it - and avoid all[/color][/color]
the[color=blue][color=green]
> >screen flashing.
> >
> > Dim acc As Access.Application
> > Set acc = CreateObject("Access.Application")
> > Application.Echo False
> > acc.OpenCurrentDatabase varPath
> > acc.Visible = False
> > acc.DoCmd.OpenForm strName, View:=acDesign, WindowMode:=acHidden
> > Set frm = acc.Forms(strName)
> > [get form properties]
> > Application.Echo True
> >
> >
> >Thanks!
> >[/color]
>[/color]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
EXEC() Runs process in background giloosh99@gmail.com answers 13 January 23rd, 2006 12:35 AM
Use an mdb as a background executable Bill Reed via AccessMonster.com answers 4 November 13th, 2005 11:26 AM
Slow MDB Linked View Neil answers 14 November 13th, 2005 11:04 AM
Slow MDB Linked View Neil answers 12 July 23rd, 2005 10:05 AM