Open the Database w/o the startup form via VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello everyone,

Am working on a project which as the following VB.NET code:

Sub OpenAccess()

Dim oAccess As Access.Application

dbPath = txtPath.Text
oAccess = New Access.ApplicationClass()
oAccess.OpenCurrentDatabase(dbPath)
…………
…………
End Sub

When running the above code the Access application is shown in the Taskbar
only when the database has a startup form otherwise the Access apps does not
show and the code runs fine.

Is there a way to open the Access database via .net code so that it is shown
hidden, just like it does for the database that does not have a startup form.

Regards
Claton
 
Back
Top