code_junkie

Access.Application.CurrentDb is Nothing?

Nov 13th, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Dim rs As DAO.Recordset
  2.  
  3. Set rs = CurrentDb.OpenRecordset("SELECT * FROM employees")
  4.  
  5. dim rs as dao.recordset
  6. set rs = currentDb.openRecordset(your SELECT instruction,...)
  7.  
  8. Dim db As DAO.Database
  9. Dim rs As DAO.Recordset
  10.  
  11. Set db = CurrentDb
  12. Set rs = db.OpenRecordset("SELECT * FROM Employees")
Add Comment
Please, Sign In to add comment