jaffar2000
Registered User.
- Local time
- Today, 12:58
- Joined
- Apr 15, 2012
- Messages
- 28
Hi,
I tried cascading lists by a single row source table method but with no luck.
I created a table named Dep_Wing.
I added 2 combo boxes and named them cboDep & cboWing (the dependent combo box).
In the row source of the cboDep I put sql to select the department names from Dep_Wing and in its AfterUpdate event I put the following code:
On Error Resume Next
cboWing.RowSource = "Select Dep_Wing.wing " & _
"FROM Dep_Wing " & _
"WHERE Dep_Wing.department = '" & cboDep.Value & "' " & _
"ORDER BY Dep_Wing.wing;"
I can select a value from cboDep but the cboWing stays empty.
The same issue exists when using Multiple Row Source Tables method.
Please help.
Jan.
I tried cascading lists by a single row source table method but with no luck.
I created a table named Dep_Wing.
I added 2 combo boxes and named them cboDep & cboWing (the dependent combo box).
In the row source of the cboDep I put sql to select the department names from Dep_Wing and in its AfterUpdate event I put the following code:
On Error Resume Next
cboWing.RowSource = "Select Dep_Wing.wing " & _
"FROM Dep_Wing " & _
"WHERE Dep_Wing.department = '" & cboDep.Value & "' " & _
"ORDER BY Dep_Wing.wing;"
I can select a value from cboDep but the cboWing stays empty.
The same issue exists when using Multiple Row Source Tables method.
Please help.
Jan.