I see no place where you do anything that would display the record, either
in this post or your follow-up. If you have a Form open that has its
RecordSource the same as the "HandGroup" (table or query) that you use here,
you could use its RecordsetClone to find the appropriate record, and set
Bookmarks to show that record on the form.
On your second response, that is still the case... you've done nothing to
display the Record, even if it did work to find it. Are you certain that the
Field is actually named Card1? Did you try enclosing the Card1 in square
brackets, e.g. "[Card1] = """...?
Larry Linson
Microsoft Access MVP
<pe****@syr.edu> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Hi all,
I am new to access and I got a simple question
How can I display matching a row from a table?
I have:
Function test2()
Dim loDB As Database
Dim loRSPlayer As Recordset
Dim lnIndex As Integer
Dim lnCount As Integer
Set loDB = CurrentDb
Set loRSPlayer = loDB.OpenRecordset("HandGroup")
' add
With loRSPlayer
.FindFirst "Card1 = "
.Close
End With
End Function
It is complaining that object doesn't support this peration. I can add
new record with .AddNew (same dims). Can you help?
Thx