Compile Error: Variable not defined

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I received some help making two forms recently that have code. I made what I
think are appropriate changes to the forms but now when I try to use the
forms the Microsoft Visual Basic opens up and gives me this error message:
"Compile error: Variable not defined" and hightlights "dbFailOnError". How
do I define this variable and get my forms working again?
 
You likely don't have a reference to the DAO object library. From the VBA
editor, select References from the Tools menu, then find and select
'Microsoft DAO 3.6 Object Library'.
 
Back
Top