andybeanland
IS-IT--Management
Hello,
I've got an really annoying problem - I copied and pasted some code for opening a recordset but it won't work now - I can't find the problem. This is what I've got:
<code>
Dim conDatabase As ADODB.Connection
Dim rs As ADODB.Recordset
Set conDatabase = CurrentProject.Connection
Set rs = New Recordset
rs.Open SQL, conDatabase, 3, 3
</code>
If fails at this last line with the message
"No value given for one or more required parameters"
I've checked the SQL statement by printing it to a message box and it seems ok. Someone help me stop my stupid mistake!
Thanks
Andy
I've got an really annoying problem - I copied and pasted some code for opening a recordset but it won't work now - I can't find the problem. This is what I've got:
<code>
Dim conDatabase As ADODB.Connection
Dim rs As ADODB.Recordset
Set conDatabase = CurrentProject.Connection
Set rs = New Recordset
rs.Open SQL, conDatabase, 3, 3
</code>
If fails at this last line with the message
"No value given for one or more required parameters"
I've checked the SQL statement by printing it to a message box and it seems ok. Someone help me stop my stupid mistake!
Thanks
Andy