Thanks, JHB. I added the db. prefix.
I went back to click on the button on the HomePage and got a 'Run-time error 3012: Object 'NewQueryDef' already exists.' So, I got rid of the name (db.CreateQueryDef("", _).
Also, I think my syntax for the Execute command was incorrect, so I changed it to...