Thanks for assisting me - it is much appreciated.
Forgive me, I really don't have much experience here but if I substitute
your code:
Sub Combo206_AfterUpdate()
Dim rs as DAO.Recordset
Set rs = Me.RecordsetClone
' Find the record that matches the control.
With rs
..FindFirst "[ID] = " & Me![Combo206] 'Assuming number datatype
if .EOF then
msgbox "No record matching FindFirst"
else
Me.Bookmark = .Bookmark
end if
End With
set rs = Nothing 'destroy
End Sub
for my original Sub Combo206_AfterUpdate() code it doesn't work here. Am I
doing this correctly?
Just to be clear, the [ID] field is a unique numeric which is the Primary
Key for the table. The value typed into or selected from a list in the
ComboBox is the text content of the [Name] field associated with [ID].
Thanks again.
"AccessVandal via AccessMonster.com" wrote:
> Typo:
>
> Sorry, recordsetclone does not work with nomatch.
>
> if rs.EOF then 'change it to rs.EOF
> msgbox "No record matching FindFirst"
> else
> Me.Bookmark = rs.Bookmark
> end if
>
> Booleanboy wrote:
> snip..
>
> Or like this.....
>
> Dim rs as DAO.Recordset
> Set rs = Me.RecordsetClone
> ' Find the record that matches the control.
> With rs
> .FindFirst "[ID] = " & Me![Combo206] 'Assuming number datatype
> if .EOF then
> msgbox "No record matching FindFirst"
> else
> Me.Bookmark = .Bookmark
> end if
> End With
> set rs = Nothing 'destroy
>
> --
> Please Rate the posting if helps you.
>
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...arted/200911/1
>
> .
>