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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript & Access procedures

Status
Not open for further replies.

mhjb

Programmer
Jun 16, 2003
1
0
0
NZ
Hi there

On a page on my client's intranet i've made a button called MSAccess, and an onclick procedure for it:

[green]
Code:
Sub MSAccess_onclick()

   Set acApp = CreateObject("Access.Application")

   With acApp
      .OpenCurrentDatabase "f:\Database.mdb"
      .Visible = TRUE
      .Run("webGotoItem(""ItemOne"")")
   End With

End Sub
[/green]

That opens the database correctly, but then Internet Explorer gives me an error message:

[red]Error: Microsoft Access can't find the procedure 'webGotoItem("ItemOne").'[/red]

webGotoItem is a Public function in a module called Miscellaneous in the database.

If you've got any ideas on how to make this work i'd be very grateful.
 
Why not create an autoexec macro to run webGotoItem() when the database is opened






[lightsaber]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top