Need Help fixing the code
When I select the Company Name It should show me the last record whereas by using the following code does not do that
where am I making a mistake
Private Sub Combo28_Exit(Cancel As Integer)
If Combo28.Text = "" Then
Cancel = True
End If
If Combo28.Value = "" Or IsNull(Combo28.Value) Then
MsgBox ("Select Company Name To Proceed !!!")
Cancel = True
Else
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CoId] = " & Str(Me![Combo28])
Me.Bookmark = rs.Bookmark
End If
End Sub
Thanks & Regards
Aamer