Wrox Programmer Forums
|
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 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
 
Old June 7th, 2010, 11:26 AM
Registered User
 
Join Date: Jun 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling Code From Another Form

I would like to access an event's code from another form (i.e. a portion of code is exactly the same in two forms),,, Is it possible to "CALL" the VBA from another form and not have to maintain both sets of code?. Thanks.
 
Old June 22nd, 2010, 12:37 PM
Authorized User
 
Join Date: May 2007
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default

What I have done is copy the code for the event to a separate procudure. Then have each event calls that procedure.
__________________
Technical Support Electrician
 
Old June 22nd, 2010, 01:38 PM
Registered User
 
Join Date: Jun 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your reply... That is the way I've been handling it. I thought I could limit the code (wihch is fairly extensive) to one procedure. That way only one proc needs to be maintained.
Again, Thanks.
Jack Kent





Similar Threads
Thread Thread Starter Forum Replies Last Post
calling control in one form from another form netfresher C# 3 November 8th, 2006 10:05 AM
How to get the current calling form in a class? littlekitty ASP.NET 2.0 Basics 0 October 17th, 2006 08:28 PM
calling functions form another window geogomez Javascript How-To 2 November 29th, 2005 07:20 AM
Calling a procedure embeded in another form lryckman Access VBA 6 April 29th, 2005 08:48 AM
calling a form melvik C# 4 July 23rd, 2003 05:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.