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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

too few parameters 1

Status
Not open for further replies.

missymarie1014

Technical User
Mar 15, 2007
50
US
The following code is producing the error "Too few parameters. Expected 1". Can someone help me with this please? I've tried several variations of this without success. Thanks in advance for any help!


Code:
Set CurDB = CurrentDb
Set rs = CurDB.OpenRecordset("SELECT * from UnprocessedBatchQuery WHERE" & _
" ItemProduced =" & Forms!EditFinishedProductForm!Item)
 
Probably this ?
Code:
Set rs = CurDB.OpenRecordset("SELECT * from UnprocessedBatchQuery WHERE" & _
" ItemProduced=[!]'[/!]" & Forms!EditFinishedProductForm!Item [!]& "'"[/!])

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
You got it PHV. I just did that on my own and that was the problem... string fields vs numeric. Thanks for your post!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top