psycoperl
Active Member
- Joined
- Oct 23, 2007
- Messages
- 339
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
- Web
I am getting a Runtime Error '-2147217904 (80040e10)' No value given for one or more required parameters
It is highlighting the line that starts with CK.Open
I dont see where this is coming from and the calls are similar to othere I have writen without errors.
Any Clues?
It is highlighting the line that starts with CK.Open
I dont see where this is coming from and the calls are similar to othere I have writen without errors.
Any Clues?
Code:
Private Sub CheckSessionForTests(SessionID As String)
If Not IsNull(SessionID) Then
Dim CK As ADODB.Recordset
Set CK = New ADODB.Recordset
CK.ActiveConnection = CurrentProject.Connection
CK.LockType = adLockReadOnly
CK.CursorType = adOpenDynamic
CK.Open "Select * from tblTestSessions Where tsTestSessionsID ='" & SessionID & "'"