URGENT!! Here is my code in MS Access 2002 SP3 (Win XP Pro SP2 platform):
Set oDAO = CreateObject("DAO.DBEngine.36")
Dim db As DAO.database
Dim tbl As TableDef
Set db = CurrentDb
On Error Resume Next
For Each tbl In db.TableDefs
I am trying to set reference to DAO 3.6 via code in order for the rest of my module to work, but I get a "Compile Error / User-defined type not defined". I know I'm missing something simple here, but I can't quite put my finger on it. Help!