A
Al
The following code breaks on the last line and generates a run time error:
*********************************
Dim ADOcnncvp As ADODB.Connection
Dim ADOrstcvp As ADODB.Recordset
Dim sqlcvp As String
Set ADOcnncvp = CurrentProject.Connection
Set ADOrstcvp = New ADODB.Recordset
sqlcvp = "SELECT PatientID, Section, SectionSignDate, SectionVerfDate
from tblCRFSectionsLog WHERE PatientID='.' AND Section = 'Cover Page'"
ADOrstcvp.Open sqlcvp, ADOcnncvp, 3, 2
*************************************
message:
Run time error:
Method 'Open' of Object '_Recordset' failed
I could not find help on this message. Any Idea?
thanks
*********************************
Dim ADOcnncvp As ADODB.Connection
Dim ADOrstcvp As ADODB.Recordset
Dim sqlcvp As String
Set ADOcnncvp = CurrentProject.Connection
Set ADOrstcvp = New ADODB.Recordset
sqlcvp = "SELECT PatientID, Section, SectionSignDate, SectionVerfDate
from tblCRFSectionsLog WHERE PatientID='.' AND Section = 'Cover Page'"
ADOrstcvp.Open sqlcvp, ADOcnncvp, 3, 2
*************************************
message:
Run time error:
Method 'Open' of Object '_Recordset' failed
I could not find help on this message. Any Idea?
thanks