Opening a form from VB Application

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top