G Guest May 5, 2004 #1 in VBA how do I use a sql statement to obtain data? How do I create a record set?
A Adrian Jansen May 6, 2004 #2 Recordset occurs as both DAO and ADO. You probably want DAO, use Dim rs as DAO.Recordset Also your SQL needs a semicolon to end: Set rs = CurrentDb.OpenRecordset("SELECT * FROM Employee;") -- Regards, Adrian Jansen J & K MicroSystems Microcomputer solutions for industrial control
Recordset occurs as both DAO and ADO. You probably want DAO, use Dim rs as DAO.Recordset Also your SQL needs a semicolon to end: Set rs = CurrentDb.OpenRecordset("SELECT * FROM Employee;") -- Regards, Adrian Jansen J & K MicroSystems Microcomputer solutions for industrial control