Wrox Programmer Forums
| 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 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, 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.

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.

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

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