Hello Everybody,
In Access 2003, I am using VBA to find a string in a table. Every time I try
to execute following line:
anRST.FindFirst "John Smith"
I get "Run-time error '3077':" which says:
Syntax error (missing operator) in expression.
Same is true for FindNext, FindLast and FindPrevious.
anRST was defined using following code:
Set anRST = CurrentDb.OpenRecordset("Test", dbOpenDynaset)
Where "Test" is the name of the table.
Any ideas what I am missing?
Thank you,

Signature
Syed Zeeshan Haider
Rick Brandt - 30 Jul 2007 04:29 GMT
> Hello Everybody,
> In Access 2003, I am using VBA to find a string in a table. Every time I try
[quoted text clipped - 15 lines]
>
> Any ideas what I am missing?
WHAT should equal "John Smith"? You need to provide a field name...
anRST.FindFirst "SomeField = 'John Smith'"

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com