Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > BOOK: Beginning Access VBA
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 7th, 2004, 03:42 PM
ez ez is offline
Registered User
Join Date: Jun 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default populate combo-boxs and listbox

I'm new in vba. I'll appreciate for any help.
I have database and need to create form with 2 combo-boxes and listbox. It should be work by select value in first combo-box I need get depedens values in second combo-box and from second combo-box get dependens values in listbox. Populate listbox from second combo-box I done. It look like:
Private Sub Combo2_Change()
 Me.List4.RowSource = "Select Result from v_Result where Proc_Id = " _
 + Me.Combo2.Value
End Sub
and now my problem include to process first combo-box.
Thanks for any help.

Reply With Quote
  #2 (permalink)  
Old June 8th, 2004, 12:59 PM
Authorized User
Join Date: Jun 2004
Location: , , USA.
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts

you should create another procedure that is triggered by Combo1_Change. The event should:

  1. clear contents of combo2 and list4
  2. clear rowsource of list4
  3. requery rowsource of combo2

Remember to ensure that "Limit to List" = YES on the properties of there three objects.

Reply With Quote

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
Populate ListBox seananderson Access VBA 13 April 18th, 2007 11:46 AM
FILLING COMBO BOXS WITH FOLDERS NAMES moony Classic ASP Professional 0 December 13th, 2005 09:04 AM
How to: Populate Filename to listbox? mdtcao Beginning VB 6 1 May 11th, 2005 10:25 PM
Populate Combo Box phil.t Access 3 November 18th, 2004 03:39 AM
Listbox doesn't populate all the records edcaru Access 1 April 25th, 2004 10:32 AM

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

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