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 TouchToneTommy 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?

Status
Not open for further replies.

HandJT

Technical User
Jun 23, 2004
84
US
I have a code where when executed an error of too few parameters in the following sql command pops up:

Set rs = db.openrecordset("Select * " & _
"FROM Plant_Employees " & _
"WHERE Plant_Employees.[clock#] = " & val(clock.value))

Is there something I am missing? Any suggestions? If you need more information, Let me know.

Thanks in advance!!
 
No spelling issue with [clock#] ?
It's the real name of a field in the Plant_Employees table ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hi

Check you SQL for spelling errors are you sure you have column names spelt correctly

also try

Set rs = db.openrecordset("Select * " & _
"FROM Plant_Employees " & _
"WHERE Plant_Employees.[clock#] = " & val(clock.value)
& ";")



Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
See, that is what is weird. I do have it all spelled right. But I will try to use what KenReay suggested and see if that works. I'll let you know. Thanks a million!
 
Sorry KenReay, it didn't work. Any other suggestions?
 
In what regards? I mean, I use to have the column named Clock # with a space, but was having problems. I then changed it to clock# with no space and have had no problems with it so far. You think maybe I should change it and if so what are my name options for clock#?
 
Sorry, but I found my problem. Even though I changed the Clock# by taking out the space in the form and code, I forgot to take it out in the table (DUH!!). Thanks for trying to help though!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top