Carl Foster
Registered User.
- Local time
- Today, 23:05
- Joined
- May 29, 2006
- Messages
- 72
Hi, hope you can help with this problem.
Here's the code to open a recordset.
When it gets to the "rsWorkgroups.Open" statement, an error comes up saying:
Run-time error '-2147217904 (80040e10)
"No value given for one or more required parameters"
I can't see where any required parameters are missing from the code. Am I missing something?
Here's the code to open a recordset.
Code:
Dim rsWorkgroups As New ADODB.Recordset
Dim SQLStmt As String
SQLStmt = "SELECT * FROM tblWorkgroups WHERE chrWorkgroupName = " & Me.tblCustomers_chrWorkgroup
rsWorkgroups.Open SQLStmt, CurrentProject.Connection, adOpenDynamic, adLockOptimistic
When it gets to the "rsWorkgroups.Open" statement, an error comes up saying:
Run-time error '-2147217904 (80040e10)
"No value given for one or more required parameters"
I can't see where any required parameters are missing from the code. Am I missing something?