Wrox Programmer Forums
|
BOOK: Beginning Access VBA
This is the forum to discuss the Wrox book Beginning Access 2002 VBA by Robert Smith, Dave Sussman, Ian Blackburn, John Colby, Mark Horner, Martin Reid, Paul Turley, Helmut Watson; ISBN: 9780764544026
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning 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 20th, 2005, 01:57 AM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display text based on another cbobox-?

I am trying to write my 1st application in Access. A user selects a city from a dropdown combo box {13 choices}. I would like for the zip code to automatically fill in another box {text box I figured}. The city is being selected via a table query. The table has three fields, CitiesID - auto, Cities, and ZipCode. Does this task need to be handled with raw code? If so, exactly what statement would I use? I tried writing a statement for one city. Example...AfterUpdate, If cmdCitiesID = New York Then txtZipCode = 29653. I have also tried to use the build function, but was unsuccessful.





Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Mysql with Flash based display robprell Beginning PHP 0 November 3rd, 2005 10:06 PM
populating cboBox with remote table data Loralee Access 8 October 31st, 2005 11:24 PM
Display based on radio button selection Mekala Javascript 4 August 5th, 2004 11:36 PM
Page display based on radio button selected Mekala HTML Code Clinic 3 July 10th, 2004 06:12 AM





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