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 VBA
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 23rd, 2006, 04:37 PM
Authorized User
 
Join Date: Feb 2006
Location: Sacramento, CA, USA.
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default run vbscript from Access

I have some vbscripts that I would like to execute from an Access form by clicking on a command button. Is there a way to do this?

Thanks,
Scott
__________________
ScottP
Reply With Quote
  #2 (permalink)  
Old March 24th, 2006, 01:21 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Yes, put the script on the button's On Click event. I do this all the time.

VBScript, VBA and VB.NET are all very similar and can be run from MS Office apps (after compilation for .net)

HTH


mmcdonal
Reply With Quote
  #3 (permalink)  
Old March 24th, 2006, 07:02 PM
Authorized User
 
Join Date: Feb 2006
Location: Sacramento, CA, USA.
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh that is too easy. Works like a charm.

Thanks,
Scott
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Convert a batch file to run in VBscript - WSH issu malcomm VBScript 0 October 25th, 2006 12:35 AM
Access page parameters from vbscript jnralfe ASP.NET 1.0 and 1.1 Basics 1 September 17th, 2004 05:20 AM
VBScript access of datagrid text badgolfer ASP.NET 1.0 and 1.1 Basics 2 July 15th, 2004 11:55 AM
Search Algorithm for Access using VBScript mjwtaylor Classic ASP Databases 2 April 27th, 2004 07:13 AM
Run registry keys in VBScript Quasimodo VBScript 2 August 8th, 2003 06:44 AM



All times are GMT -4. The time now is 05:09 PM.


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