Opening a form from VB Application

  • Thread starter Thread starter Treebeard
  • Start date Start date
T

Treebeard

I want to be able to open a Form in the Access database from my VB
application. So far I have found that this code works
Set objDB = New Access.Application

Set objDB = CreateObject("c:\MATS\MATS_Data.mdb")
objdb.visible = true

Set objFrm = objDB.Forms("OriginalParts")
objFrm.Visible = True

But the second time I attempt to run it and open a different form I get an
error. Do you know a good way to open Access forms from a VB application?

Hope you are surviving the cold weather.

Jack
 
Back
Top