Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old April 27th, 2006, 04:14 AM
Registered User
Join Date: Apr 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Running VBA Code from a DataAccessPage


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:
  Dim oAccess
  Set oAccess = CreateObject("Access.Application")
  oAccess.Run "Befehl0_Click"
  Set oAccess = Nothing
Someone an idea whats wrong?



Reply With Quote
  #2 (permalink)  
Old April 28th, 2006, 02:52 AM
Authorized User
Join Date: Mar 2006
Location: Bratislava, , Slovakia.
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts

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)).

Reply With Quote
  #3 (permalink)  
Old June 1st, 2006, 10:10 AM
Registered User
Join Date: Apr 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

It is, but it still doesn't work.


Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code works in Excel VBA but not Access VBA fossx Access VBA 2 May 21st, 2007 08:00 AM
Running stored procedure in Access VBA Bryon Burbage Access VBA 0 July 21st, 2006 09:14 AM
too few variables when running sql qry through vba Christaaay Access 2 December 19th, 2005 03:21 PM
Running Excel VBA Macros shattered Visual Basic 2005 Basics 0 November 14th, 2005 05:07 AM
Running an SQL query in VBA... Augusta Access VBA 3 December 1st, 2004 04:17 AM

All times are GMT -4. The time now is 04:50 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.