Question : Problem With Insert Statement

Hello - I'm trying to get the following SQL statement to work But i get the error "Missing Semi-Colon at end of SQL Statement"



I know this is probably something simple, but it's driving me crazy!

Thanks!
Code Snippet:
1:
urrentDb.Execute ("INSERT INTO [Pending] (Flagged) VALUES ('Y') WHERE PendingClaimNum = '" & Me.txtClaimNum & "'")

Answer : Problem With Insert Statement

A little more explanation...
An INSERT query adds a new row to your table.  
An UPDATE query modifies existing records in your table.

The criteria you are using makes me think that you need an UPDATE query.
Random Solutions  
 
programming4us programming4us