princessk1
Programmer
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
'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