Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FindFirst vs Seek

Status
Not open for further replies.

abbyanu

IS-IT--Management
Jan 18, 2001
82
US
Hi

I have a line
Code:
.FindFirst ("ProductNumber ='" & Prodno)
that is generating an error:

Code:
Run-time erroe '3077'
Syntax error (missing operator) in expression.

I've tried all variations, but in vain. Any idea what's causing the problem? It's also slow. I've also read somewhere in this forum that
Code:
seek
is faster than
Code:
FindFirst
. Can this be used instead, in my case? How?

Thanks for your time.

AbbyAnu.
 
If this is the exact line, you have a missing single quote in the expression.
Try:
FindFirst ("ProductNumber ='" & Prodno & "'").
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top