Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Access 1

Status
Not open for further replies.

AgentM

MIS
Jun 6, 2001
387
US
How can I call an Access Application from VBScript.

I can open the *.mdb file but it doesn't stay open.
my code:
Set AApp = GetObject("C:/db1.mdb","Access Application")
AApp.Visible = true

It opens and closes doesn't stay open .
Any ideas.
 
Here's a FAQ on how to connect to an Access database:

faq333-178

and check out

for some excellent tutorials and


for great quick ref material.

good luck! :)
Paul Prewett
penny.gif
penny.gif
 
Thanks Paul

I don't want to connect to Access. I want the user to Open a Access db when a link is clicked on an internet page.

Say using GetObject or CreateObject.

Thank you for the response.
 
Hello, AgentM.

Here is the revision you should have.

Set AApp = GetObject("C:\db1.mdb","Access.Application")
With AApp
.Visible = true
.UserControl = true
End With

regards - tsuji

PS I don't know whether it is a typo of yours or not. "Access.Application" should have a dot in between.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top