473,385 Members | 1,445 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,385 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 911
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.