Too few parameters, expeced 1.

Peter Bellamy

Registered User.
Local time
Today, 16:35
Joined
Dec 3, 2005
Messages
295
I am getting this error on a simple SQL statement

Code:
StrSql = "SELECT * FROM Equipment WHERE [equip_index] = Me.[calls_equip_sno]"
Set StrDb = CurrentDb()
Set StrRst = StrDb.OpenRecordset(StrSql)

both [equip_index] and Me.[calls_equip_sno] are Long Integers

Where am I going wrong?
 
peter,

numeric values in an sql string have to be concatenated out...
Code:
where [equip_index] = " & me.[calls_equip_sno]
also, if your fields have no space, brackets are not necessary.

HTH
 
Thanks, that fixed it!

pnb
 

Users who are viewing this thread

Back
Top Bottom