Runtime Error 3077: Syntax error (missing operator)

Runtime Error 3077: Syntax error (missing operator)

Post by Avery Peric » Wed, 09 Jun 1999 04:00:00



Every time that I try to use DAO with a database that I created in MS
Access 97 and try to use FindFirst, FindLast, FindNext, FindPrevious
statements, I get a message that says "Runtime Error 3077: Syntax error
(missing operator) in expression." I don't know what it is that I am
missing as this code worked great with the Northwind database that came
with VB6. Here is my code:

Private Sub Command1_Click()
    Data1.Recordset.FindNext ("Buyer = " & Text4.Text)
End Sub

Someone please tell me what I am doing wrong! Thank you!

 
 
 

Runtime Error 3077: Syntax error (missing operator)

Post by Tony Fountai » Thu, 10 Jun 1999 04:00:00


First, what's the value of Text4.Text?  Are there any quotes or anything?
Secondly, you need to surround string values with quotes.

--

Later,
Tony Fountain, MCP
===================================================
Please do not email me directly, my wife already clutters up my inbox
===================================================

Quote:> Every time that I try to use DAO with a database that I created in MS
> Access 97 and try to use FindFirst, FindLast, FindNext, FindPrevious
> statements, I get a message that says "Runtime Error 3077: Syntax error
> (missing operator) in expression." I don't know what it is that I am
> missing as this code worked great with the Northwind database that came
> with VB6. Here is my code:

> Private Sub Command1_Click()
>     Data1.Recordset.FindNext ("Buyer = " & Text4.Text)
> End Sub

> Someone please tell me what I am doing wrong! Thank you!


 
 
 

1. Syntax Error #3077 - Please Help!!!!

Anybody who can help, it would be most appreciated.

I have written a database application with the names in the database
displayed in a list box. When the user clicks on a name, the idea is to
display the appropriate record. I have done this using the 'findfirst'
command but the following line of code attracts syntax error (missing
operator in expression #3077) when any name in the listbox is clicked:

data1.recordset.findfirst target

where target is the variable containing the name that the user has clicked.

thanks to anyone in advance

Greg

2. MS SQL Server Ver 6.0 TWO-PHASED COMMIT/REPLICATION

3. Runtime Error 3077

4. US-WI-Financials-contract

5. Syntax error (missing operator in query expression)

6. Japanese

7. Quey Syntax error(missing operator)

8. tempdb naming scope for Primary Key constraints *global* on local #temptables

9. error 3077 occurs after FindFirst with a string containing an apostophe

10. TOP operator syntax error

11. Syntax error w/ no error in syntax.

12. runtime error - ...workgroup info file missing..

13. Runtime Error: 424 - OBJECT MISSING