Too Few Parameters Expected 1 Error 3061

CatFish

Catfish
Local time
Today, 09:08
Joined
Mar 9, 2008
Messages
6
Why does this work:

Code:
Set db = CurrentDb
    sSql = "SELECT Ingredients FROM Cajun WHERE RecipeID = 10;"
    Set rs = db.OpenRecordset(sSql)

and this doesn't Too Few Parameters Expected 1 3061

Code:
Set db = CurrentDb
    sSql = "SELECT Ingredients FROM Cajun WHERE RecipeName = [Cajun Spice];"
    Set rs = db.OpenRecordset(sSql)
 
Try:
sSql = "SELECT Ingredients FROM Cajun WHERE RecipeName = 'Cajun Spice' ;"
 
Thanks Rural Guy. I don't know why I couldn't think of that (brain:eek: freeze)
 
I specialize in the easy questions. Thanks for the softball. ;)
 

Users who are viewing this thread

Back
Top Bottom