Is this a continuation of your other thread? If so, why not just post it there? Which item from the second combo should be automatically picked when you select from the first combo? Should it automatically pick the first item or something else?Choosing an item from the first combo does automatically pick an item from the second combo. This is what I want to do
Because I cannot post a reply in the original one. In the second Combo Box the selected record should be the selected record in the first combo box.Is this a continuation of your other thread? If so, why not just post it there? Which item from the second combo should be automatically picked when you select from the first combo? Should it automatically pick the first item or something else?
I have answered all the questions. A cascading combo box is not the answer.Tom, it would be better to provide a descriptive thread title and answer all of theDBguys questions.
You have two combo boxes. When a user selects a value in the first, you want the same value to be selected in the second.Because I cannot post a reply in the original one. In the second Combo Box the selected record should be the selected record in the first combo box.
You have two combo boxes. When a user selects a value in the first, you want the same value to be selected in the second.
To what end? What's the point? Why even have the second combo box if it's a duplicate of the first?
Please explain the "WHY" of the task. What would you gain in terms of the business rules?
Just bring it into the first combo then?, and use it from there?The Combo boxes are loaded with two different tables . The fist one is load with the BookLibrary TBL and the second in load with the Authors TBL. The Key for the authors Combo box is held in the record from the Library Combo Box.
This is indeed exactly what a cascading combo box design does. The only difference is that you have designed your tables (IIRC from seeing the table design in a previous discussion) to support one author per book, rather than allowing for co-authors. That means the "downstream" combo box will be filtered to that one author record, but otherwise it's a bog standard Cascading ComboBox.The Combo boxes are loaded with two different tables . The fist one is load with the BookLibrary TBL and the second in load with the Authors TBL. The Key for the authors Combo box is held in the record from the Library Combo Box.
Yes, but the authors name should show in the Authors combo Box. When the selection in the bookLibrary combo box changes then the authors combo box should reflect the change.Are you saying if 17 is the value of the BookLibrary combo box, then 17 will be the value in the Authors combo box?
If Not IsNull(Me.cboFirst) Then
Me.cboSecond = Me.cboFirst
End If
Code does nothingI don't see why you want to do this but you could add some VBA in the after update event of the first combo box to set the value of the second combo box:
Makefile:If Not IsNull(Me.cboFirst) Then Me.cboSecond = Me.cboFirst End If
Code does nothingI don't see why you want to do this but you could add some VBA in the after update event of the first combo box to set the value of the second combo box:
Makefile:If Not IsNull(Me.cboFirst) Then Me.cboSecond = Me.cboFirst End If
With a slight modification, give this one a shot and let us know...Code does nothing
Code gives Error '424'With a slight modification, give this one a shot and let us know...