Error Message "Compile Error: Variable not defined"

  • Thread starter Thread starter Keith Woollacott
  • Start date Start date
K

Keith Woollacott

I have copied a form from an inherited database to a new one. When I click on
a button on the form I get the above error message, Visual Basic opens with
the text in brackets highlighted in the following line:

With Application.FileDialog(msoFileDialogFilePicker)

It works OK in the original database.
 
Check the database where it *does* work for which References are selected
(in the VBA Editors: Tools>References), and make sure all are selected in
the new database.
 
Back
Top