Hey Ken a belated reply, but I wanted to let you know I redid the combo box
after your initial response (because I thought I had the bound column wrong).
And that combo box actually works... I put the RentalAgreementId as the 2nd
column and bound it to it. I did leave my other combo box and tried to
trouble shoot it, the code you gave me below didn't work. I really wanted to
figure out what I did wrong, and I may keep messing with it, but I did want
to THANK YOU for spurring my mind and getting me to go at this one more time
(I think I have a better understanding of the combo box).
I do not have a control source... is this a problem? THANKS again!!!!
Column Count = 2
ColumnWide = 2";1"
BoundColumn = 1
RowSource = SELECT [RenterLastName] & ", " & [RenterFirstName] AS Expr1,
qryRentalAgreement.RentalAgreementId FROM qryRentalAgreement ORDER BY
[RenterLastName] & ", " & [RenterFirstName],
qryRentalAgreement.RentalAgreementId;
CODE:
Private Sub cboLastName_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[RentalAgreementId] = " & Me![cboLastName].Value & ""
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
> What is the ControlSource property's value?
>
[quoted text clipped - 66 lines]
> >> >
> >> > End Sub
Ken Snell (MVP) - 23 May 2007 00:53 GMT
Sometimes, rebuilding a control fixes many weird problems < grin >.
You do not want a control source value for a combo box that is being used to
select a value for filtering / searching, so your setup is correct.
When you say the code doesn't work, what does that mean -- gave wrong
results? gave no results? gave an error? gave ....

Signature
Ken Snell
<MS ACCESS MVP>
> Hey Ken a belated reply, but I wanted to let you know I redid the combo
> box
[quoted text clipped - 110 lines]
>> >> >
>> >> > End Sub