Error Message "Compile Error: Variable not defined"

  • Thread starter Keith Woollacott
  • 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.
 
R

Roger Carlson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top