My database with all forms, reports, macros and modules work properly in Access 2003. Now I have installed Access 2007. After that none of my command buttons work. I tried to create a new database and form in access 2007 with some command buttons. I’ve inserted some visual basic codes in On Click Event for the command button as my previous project. But again it does not work. Do I have mistake in Access 2007 or I’ve forgotten something in my project?
For examples:
Private Sub EditCom_Click()
Me.AllowAdditions = True
Me.AllowDeletions = True
Me.AllowEdits = True
End Sub

For examples:
Private Sub EditCom_Click()
Me.AllowAdditions = True
Me.AllowDeletions = True
Me.AllowEdits = True
End Sub