AccessDiscussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
i want to run VBA-Code from a DataAccessPage. I placed a Button on the Page and try to run VBA-Code using VBScript. But it doesn't work. Here is the Code:
Code:
Dim oAccess
Set oAccess = CreateObject("Access.Application")
oAccess.Run "Befehl0_Click"
Set oAccess = Nothing
Hi,
the procedure, which you call, must be public, and must be located (stored, saved) in standard module (not in module of any class (form, report, you class)).
Peko