I converted from Access 2003 to Access 2007 my previous commands and queries
will not run.
Access 2007 will disable your code if the source file of your DB is
not in a "Trusted" location. If you click the Office button in the
upper left corner, then go to Access Options, you should be able to
add your source file to the trusted locations list.
HTH