473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Based on one combobox selection ,display value for two combobox

Hi friends,

What I am trying to do is simple. I have 3 combobox's on one form.

-cboSystem
-cboRelease
-cboProject

Now, based on what I select in cboSystem, the values in cboRelease & cboProject should be filtered.

Also, there are 2 tables:
-Release(ID,System,Release)
-Project(ID,System,ProjectName)

I would like to mention that , i have used below code to filter cboRelease based on cboSystem.

Expand|Select|Wrap|Line Numbers
  1. Dim stRelease As String
  2. stRelease = "SELECT [Release].[ID],[Release].[ReleaseName] FROM Release WHERE [Release].[System] = '" & Me.cboSystem.Value & "';"
  3.     Me.cboRelease.RowSource = stRelease
  4.     Me.cboRelease.Requery
But, when i use same kind of code for cboProject, it is not working.

Expand|Select|Wrap|Line Numbers
  1. Dim stProject As String
  2. stProject = "SELECT [Project].[ID],[Project].[System],[Project].[ProjectName] FROM Release WHERE [Project].[System] = '" & Me.cboSystem.Value & "';"
  3.     Me.cboProject.RowSource = stProject
  4.     Me.cboProject.Requery
The popup message displays like;
"Enter Parameter Value" Project.ID=
Project.System=
Project.ProjectName=

At last cboProject displays nothing but blank.

Before selecting anything all the combobox's are displaying all information(unfiltered).

I guess i gave required informations.

I just want to figure out what mistake i have done in the coding.

I would appreciate all kind of help.

Thank you :)
May 29 '15 #1

✓ answered by Sandy1992

Omg!

My bad!

Everything is working fine now.

The only mistake was TABLE NAME.

Instead of using Project I was using Release.

Well I must say this is the simplest way to make this work.

Still I would like to Thank you guys for solving my so many problems. :)

1 912
Omg!

My bad!

Everything is working fine now.

The only mistake was TABLE NAME.

Instead of using Project I was using Release.

Well I must say this is the simplest way to make this work.

Still I would like to Thank you guys for solving my so many problems. :)
May 29 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: yalanue | last post by:
I want to create a combobox with its displaymember populated from a datatable. But once I get it run, the default display member in the combobox is always the first row of the displaymember list....
2
by: jen | last post by:
i have select query that returns multiple records and populates a combobox/pulldown. once a selection from the pulldown is selected, i need to reference two or three fileds from the previous...
2
by: jujubean | last post by:
I have a form with five comboboxes. In the first, the user can select one of four items. The other four comboxes are hidden. Based on the selection made in combobox one, I would like one of the...
4
gcoaster
by: gcoaster | last post by:
Hello! I have a dilemma I have a form that is bound to a table = tblCALLDETAILS I have a field in the table that is on the the form called = email, that is a textbox txtClientEmail ...
4
by: Mtek | last post by:
Hi, We have a combo box on our page, which gets populated via a MySQL Query in PHP. What we want to do is to print the values on the page in a table that correspond the to selection from the...
10
by: dkyadav80 | last post by:
<html> /// here what shoud be java script for: ->when script run then not display all input text field only display selection field. ->when user select other value for institute only this...
3
by: Venturini | last post by:
I am trying to put together a web page where the customer makes choices of products and is then given a total. I am extremely new to Javascript and have managed to get as far as I have from web...
0
by: Moorthi chinna | last post by:
how to reload combobox in datagridview based on combobox selection in datagridview?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.