You're not giving a lot of detail, you realize?
I conclude that what is needed is to navigate the form to the log record
that matches the user's selection. This is simple enough, but it will be
easier if the log table has a single primary key field, and whether the list
box includes this primary key, possibly as a hidden column.
First, let's assume the table has a numeric primary key field called LogID,
and that this key field is included as the bound column of the list box.
This example of code for the list box's AfterUpdate event will navigate your
form to the record with that LogID. I'm also assuming, for the example,
that the list box is named "lstLogEntries".
'----- start of code -----
Private Sub lstLogEntries_AfterUpdate()
With Me.lstLogEntries
If Not IsNull(.Value) Then
Me.Recordset.FindFirst "LogID=" & .Value
End If
End With
End Sub
'----- end of code -----
If the table has no single primary key field, then the FindFirst expression
must be more complex and will involve various columns of the combo box, and
I would need to know what data is in what column, as well as what the field
names are, to adapt the code.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)