why do i get an error in the following code: Dim db As Database error message: compile error: user-defined type not defined matt