Wrox Programmer Forums
|
Visual Basic 2008 Essentials If you are new to Visual Basic programming with version 2008, this is the place to start your questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Essentials 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 March 26th, 2008, 04:54 PM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VBA help

I'm trying to learn Access and VBA at the same time. I purchased the Access 2007 VBA book. In chapter 6 there is examples of building a switchboard for using multiple forms. I wrote the code and it all worked great until I closed Access and then reopened it. Now my command buttons do not work. Any ideas why?

 
Old March 26th, 2008, 05:04 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Well, what does happen?

I suspect that you added the buttons, saved the form, added the code on the button clicks, tested it (it worked), then you closed the app without further saving. If so, the button additions were saved, but not the code additions.
 
Old March 26th, 2008, 07:25 PM
Registered User
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Possibly you may also have changed the name of the buttons (not as likely an explanation as not saving but possible) and the code that is tied to the name of the original buttons simply isn't being executed.

Gordon






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
EXCEL VBA bem2x Beginning VB 6 1 September 1st, 2006 01:56 AM
New to VBA. Please help me. rupen Access VBA 1 May 27th, 2005 07:54 AM
Excel VBA to SQL & back to VBA edesousa Excel VBA 1 June 1st, 2004 02:39 AM
VBA bjackman Access 1 January 7th, 2004 12:43 AM





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