Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Run-time error '3077':

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Syed Zeeshan Haider - 30 Jul 2007 04:30 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.