Forum Discussion
Saving a ACCDE file gives an error message
I am using ACCESS that comes with Microsoft 365. I am current in all updates.
I am compiling and repair before I attempt to save.
In trying to save as an ACCDE , I go to file and choose save as ACCDE and choose where to save
I get a message box which states that "Access was unable to create the file .accde, .mde or .ade file"
I have discovered, by trial and error that if I take out autoexec that opens a welcome page and aids in navigation it will save. But doing that makes the database useless to most users.
So, next make sure you have Option Explicit as the second line in EVERY code module and if not add it.
Now compile your database again. You will probably find errors that weren't flagged before.
Fix all errors and you should then be able to create an ACCDE successfully
- Jeanette2280Nov 28, 2021Copper ContributorOkay you are speaking to a newbie here
Where do I find the VBA option?
I tried the options under file and could not locate- George_HepworthNov 28, 2021Silver Contributor
- Jeanette2280Nov 28, 2021Copper ContributorCompile is greyed out
I cant access it ?
- isladogsNov 28, 2021MVP
First open the Visual Basic Editor (VBE) e.g. from the Database Tools ribbon
In the VBE, click Tools ...Options and tick the item highlighted
Then make sure each code module has Option Explicit as line 2 as shown above.
After that, click Debug...Compile.
You will almost certainly have at lease one undeclared variable.
Fix and continue until your project is compiled. Then try saving as ACCDE again.