dpatrickcollins
Programmer
- Nov 18, 2002
- 79
Just learning how to use the Data Environment designer and I am going by the book. After creating a connection to an Access database and a command to retrieve data from a single table, the following code is failing in the Form_Load Event:
Private Sub Form_Load()
Dim rs As ADODB.Recordset
Set rs = DataEnvironment1.Command1
End Sub
I am getting the error stating "Type Mismatch" and Command1 is highlighted. What am I doing wrong?
Private Sub Form_Load()
Dim rs As ADODB.Recordset
Set rs = DataEnvironment1.Command1
End Sub
I am getting the error stating "Type Mismatch" and Command1 is highlighted. What am I doing wrong?