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

No value given for one or more required parameters

Status
Not open for further replies.

princessk1

Programmer
Feb 28, 2002
74
CA
I am getting this error message:
'No value given for one or more required parameters' when I am trying to open a recordset. Does anyone else know what is causing this error.
This is my code:

Set rs = CreateObject("ADODB.Recordset")
Set cnn = CreateObject("ADODB.connection")
cnn.Open getconnection
cmd.ActiveConnection = cnn

SQL = "SELECT * FROM TblFilterClient WHERE ClientID = " & _
txtClientID

cmd.CommandText = SQL
rs.open cmd

Thanks
 
Hi Princess !,

What's the Data Type of ClientID in the table ?.


Regards,

Ahmed
ajewahar@sa.dhl.com
 
Try
SQL = "SELECT * FROM TblFilterClient WHERE _
ClientID = '" & txtClientID & "'" (single quotes 'inside' double quotes)


if txtClientID is text type (not numeric)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top