msgbox - simplest thing

  • Thread starter Thread starter atif
  • Start date Start date
A

atif

Hi,
this is my first experience writing code in Access 2007, why this simple
code not working.

Private Sub Command0_Click()
MsgBox ("atif")
End Sub

thanks
 
Hum, I suppose I could ask a really silly question:

When you exit the database, and re-enter, do you get big warning bar right
below the ribbon
that states "security warning...Certain content in this database has been
disabled???

I suspect you not enabled, or allowed code to run in this datbase....
 
Actually Linq -

that is not completely accurate. You do NOT have to set a trusted location
for you macros and code to work. You would have to do what Albert said, but
you can do that always and never set a trusted location. Setting a trusted
location allows you to not have to click the Enable Code option button each
time.

--
Bob Larson
Access World Forums Administrator

Tutorials at http://www.btabdevelopment.com

__________________________________
 

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

Back
Top