Hello please can some one help me with my issue. I have read the Access FAQ's about cascading combo boxes and I have had no success. Hopefully I have explained well enough.
I have two comdo boxes on my main form.
The first you can search for a persons record via surname and the second you can search via their ID number.
Using either will populate the details section on the form.
combo 1 (surname search) uses:
as the row source.
It also has the event procedure on after update:
The second combo box is pretty much the same:
as row source.
as event procedure for after update.
My problem is that if you change one of them it populates the details section but does not change the other combo box to match or correspond with the rest of the form etc.
Is this possible??
Many Thanks
I have two comdo boxes on my main form.
The first you can search for a persons record via surname and the second you can search via their ID number.
Using either will populate the details section on the form.
combo 1 (surname search) uses:
Code:
SELECT DropDown.surname FROM DropDown ORDER BY DropDown.surname;
It also has the event procedure on after update:
Code:
Private Sub Combo45_AfterUpdate()
' Find the record that matches the control.
Dim RS As Object
Set RS = Me.Recordset.Clone
RS.FindFirst "[surnamename] = """ & Me![Combo45] & """"
If Not RS.EOF Then Me.Bookmark = RS.Bookmark
End Sub
The second combo box is pretty much the same:
Code:
SELECT DropDown.user_id FROM DropDown ORDER BY DropDown.user_id;
Code:
Private Sub Combo50_AfterUpdate()
' Find the record that matches the control.
Dim RS As Object
Set RS = Me.Recordset.Clone
RS.FindFirst "[user_id] = """ & Me![Combo50] & """"
If Not RS.EOF Then Me.Bookmark = RS.Bookmark
End Sub
My problem is that if you change one of them it populates the details section but does not change the other combo box to match or correspond with the rest of the form etc.
Is this possible??
Many Thanks