iworkonline
Registered User.
- Local time
- Yesterday, 23:45
- Joined
- May 25, 2010
- Messages
- 44
Hi Guys
I am using Access 2003 and running the following code but I am not able to run.
I am getting the following error message:
"No value given for one or more required parameters." and the debugger stop at the following line
Here is the full code.
I am not sure what is wrong in the following statement
because I was able to run the above statement in a different module.
Thanks
I am using Access 2003 and running the following code but I am not able to run.
I am getting the following error message:
"No value given for one or more required parameters." and the debugger stop at the following line
Code:
rs.Open strSql, CurrentProject.Connection
Here is the full code.
Code:
Dim rs As New ADODB.recordset
Dim strSql As String
Dim cmd As ADODB.Command
strSql = "Select * from Q_Shipper_Export"
cout = 0
rs.Open strSql, CurrentProject.Connection
Do While Not rs.EOF
Debug.Print rs!Dear_Name
rs.MoveNext
count = count + 1
Loop
MsgBox CStr(count) & " records emailed"
rs.Close
Set rs = Nothing
I am not sure what is wrong in the following statement
Code:
rs.Open strSql, CurrentProject.Connection
Thanks