Using Access 2007, Windows 7.
Just looking for general advice and opinions on which is a more efficient and preferred method, programmatically, to run commands and execute functions within forms: Macros, or VBA Event Procedures?
I am clearly getting into the learning curve that there is far more control over what I am trying to do when I use Event Procedures over Macros. But I'm looking for the experienced opinions that know whether either choice is actually advantageous over the other, besides personal control.
Will my database run faster, however miniscule it may be, if I use a macro or event procedure?
Is there less chance of database corruption with either choice?
And most importantly, on a high-security network like we use in the DoD, will using VBA Event Procedures remove the need for users to have to Enable Macros every time they open the database? Obviously I haven't tested this, as I am currently in the process of converting all my Macros to Event Procedures slowly but surely as I learn how to do it, but I would like to know beforehand if it's worth the effort or not, other than just for programming knowledge gained.
Is DoCmd basically the same as running a command from a macro? (Am I showing my lack of VBA knowledge by asking this question?)
And lastly, will drinking heavily (more than I already am while trying to redesign a database for the Army that is clearly antiquated), improve my comprehension of VBA and Access?
Thanks for any advice, answers, and critique.
P.S. - Bob and Coach, Your advice in my very first thread I posted here has greatly pointed me in the right direction toward truly learning what I am doing and how to design a database properly. I hope you'll be pleased by the time I'm finished.
Just looking for general advice and opinions on which is a more efficient and preferred method, programmatically, to run commands and execute functions within forms: Macros, or VBA Event Procedures?
I am clearly getting into the learning curve that there is far more control over what I am trying to do when I use Event Procedures over Macros. But I'm looking for the experienced opinions that know whether either choice is actually advantageous over the other, besides personal control.
Will my database run faster, however miniscule it may be, if I use a macro or event procedure?
Is there less chance of database corruption with either choice?
And most importantly, on a high-security network like we use in the DoD, will using VBA Event Procedures remove the need for users to have to Enable Macros every time they open the database? Obviously I haven't tested this, as I am currently in the process of converting all my Macros to Event Procedures slowly but surely as I learn how to do it, but I would like to know beforehand if it's worth the effort or not, other than just for programming knowledge gained.
Is DoCmd basically the same as running a command from a macro? (Am I showing my lack of VBA knowledge by asking this question?)
And lastly, will drinking heavily (more than I already am while trying to redesign a database for the Army that is clearly antiquated), improve my comprehension of VBA and Access?
Thanks for any advice, answers, and critique.
P.S. - Bob and Coach, Your advice in my very first thread I posted here has greatly pointed me in the right direction toward truly learning what I am doing and how to design a database properly. I hope you'll be pleased by the time I'm finished.