Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
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 December 8th, 2009, 03:28 AM
prabha_friend
Guest
 
Posts: n/a
Default How to code the grand children?

Suppose I create a Form in Run time say Form1, and add a control say cmd1. If the user clicks the cmd1 then we have to close the Form but how to attach code to that control, exactly an event procedure for that cmd1. I want to understand the fundamentals. Thanks in advance.
 
Old December 10th, 2009, 09:38 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

  • Open the form in design view.
  • Click on the control.
  • Choose View > Properties from the menu
  • Choose the "Events" tab in the Properties window.
  • Place your cursor inside an event for which you wish to code, e.g. ON CLICK.
  • Choose "Event Procedure" from the dropdown menu that appears.
  • Click the button to the right with the elipsis (three dots ... ).
  • The VBA code window will open for that event.
__________________
Greg Serrano
Michigan Dept. of Environmental Quality
Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple formula fields as grand total position of cross tab report design in vb.net MasterIT Crystal Reports 0 July 29th, 2009 04:59 AM
calculating grand total blkskullwork Javascript 2 December 18th, 2006 10:36 AM
PIVOT TABLE Grand Total ... pls help !!!! laky Access VBA 0 June 2nd, 2006 03:47 AM
PIVOT TABLE Grand Total ... pls help !!!! laky Access 0 June 2nd, 2006 02:15 AM
Grand Total mateenmohd Access 6 April 8th, 2005 07:30 AM





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