msgbox - simplest thing

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
 
A

Albert D. Kallal

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....
 
B

boblarson

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

__________________________________
 
Top