A
Alex
I'm using Access 2002. The following code gives me a type mismatch:
Private Sub Command13_Click()
Dim Rs As Recordset
Set Rs = Me.Recordset
End Sub
If I change my Dim statement to:
Dim Rs As ADODB.Recordset
I still get a type mismatch.
If I try the following:
Dim Rs As DAO.Recordset
then I get the error: Compile error. User-defined type not defined.
I have a reference to Microsoft ActiveX Data Objects 2.5 Library. The
Microsoft DAO Object Libraries are not referenced (they are not checked in the
References dialog). Can somebody please explain to me what's going on?
Ultimately what I'm trying to do is get access to the form's recordset. I'm
working on a company wide application and I already checked that the
workstations are using ADO, not DAO in the Access database applications that
they currently have. I want them to keep using what they are using and not
have to require them to make any changes.
Private Sub Command13_Click()
Dim Rs As Recordset
Set Rs = Me.Recordset
End Sub
If I change my Dim statement to:
Dim Rs As ADODB.Recordset
I still get a type mismatch.
If I try the following:
Dim Rs As DAO.Recordset
then I get the error: Compile error. User-defined type not defined.
I have a reference to Microsoft ActiveX Data Objects 2.5 Library. The
Microsoft DAO Object Libraries are not referenced (they are not checked in the
References dialog). Can somebody please explain to me what's going on?
Ultimately what I'm trying to do is get access to the form's recordset. I'm
working on a company wide application and I already checked that the
workstations are using ADO, not DAO in the Access database applications that
they currently have. I want them to keep using what they are using and not
have to require them to make any changes.