Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2010 > Visual Basic 2010 General Discussion
Visual Basic 2010 General Discussion For any discussions about Visual Basic 2010 topics which aren't related to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2010 General Discussion 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 September 11th, 2015, 04:38 AM
Registered User
Join Date: Sep 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to remove duplicate in combobox with database access

I have database like this

Manufacture Model No Length Width height

Manufacture 1 MD-01 200 300 100

Manufacture 1 MD-02 300 400 100

Manufacture 1 MD-03 400 300 150

Manufacture 2 MAD-01 200 450 100

Manufacture 2 MAD-02 250 400 100

Manufacture 3 MDI-01 300 300 100

Manufacture 4 MOv-01 350 300 100

I would like to create 2 combobox -

1) Manufacture 2 ) model No

Manufacture should display for above example Manufacture 1,Manufacture 2,Manufacture 3, Manufacture 4

when particular manufacture selected for example Manufacture 2 -> combox should display only MAD-01 & MAD 02.

Based on both selection text box must me loaded with length, width , height.

i tried sample code & try to assign the combox with database value. I found duplicate list of column. Like for combobox1 accumulate

Manufacture 1

Manufacture 1

Manufacture 1

Manufacture 2

Manufacture 2

Manufacture 3

Manufacture 4

Is there any example program available to do this. How can do this.
Old September 11th, 2015, 06:43 PM
Friend of Wrox
Join Date: Sep 2010
Posts: 245
Thanks: 5
Thanked 24 Times in 23 Posts

Sounds like what you wan to do is often called cascading combo boxes.

Note: This does not work well for a form in datasheet or continuous view modes.

I would expect that you have a manufacture table. That is what would be used for the first combo box. The list of items in the second combo box would filter the records based on the Manufacturer ID from the first combo box.
Boyd Trimmell aka HiTechCoach (.com)
Microsoft Access MVP Alumni 2010-2015

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Duplicate Nodes Batman123 XSLT 0 September 24th, 2014 09:06 AM
remove duplicate text in an output html element mrame XSLT 1 June 20th, 2008 01:41 AM
Checking for duplicate entry in Database sharon5469 ASP.NET 1.0 and 1.1 Basics 1 November 18th, 2007 06:08 PM
How to remove duplicate row from sheet ketannsharma Excel VBA 1 February 18th, 2007 03:32 AM

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