H
Howard
I have procedures behind a Access forms. I created a event procedure from
the form's properties windows or sometimes I copy code from another form's
code and paste that code behind another form. I then modify that codes as
needed and then compile the code which I believe creates the [Event
Procedure] text for each event that may be called from the event procedures
found in the pasted code.
(1) From time to time a form's [Event Procedure] property text in the
form's property window comes up missing -- gone, disappears.
(2) And, in a particular Access database, the entire code behind the form
sometimes comes up missing. I've then have to get an archived copy of the
code, paste it into the form's code module, compile the code, test the
functionality of the command buttons that work okay now. And this form will
be good for a while or days, but then I will have another experience where
the code becomes missing again. No way has there ever been a property
setting of HasModule = False that would have removed the code. However, the
behavior of this one application is acting like it has been invoked.
What is happening here in these two incidents? Is this possibly a side
effect of a database corruption that I experience from time to time after
adding code behind forms, etc?
I am using:
Microsoft Access 2003 SP3
The original form and code in (2) above was designed in an Access 97
database, but imported, modified and deployed in many projects in
Access 2000, Access 2002, and Access 2003
Database developed on a Windows XP and then moved to Windows Vista Ultimate
which now with SP1
Database deployed on Windows XP and a few Vista computerfs
Is there are good code snippet that I could use to check programmatically
code events like _Click, _AfterUpdte, etc and verify if the code has a
corresponding [Event Procedure] property? Does any one have or use code like
this that they are willing to share? If not, I will start the process of
writing a code procedure to check this.
Howard
the form's properties windows or sometimes I copy code from another form's
code and paste that code behind another form. I then modify that codes as
needed and then compile the code which I believe creates the [Event
Procedure] text for each event that may be called from the event procedures
found in the pasted code.
(1) From time to time a form's [Event Procedure] property text in the
form's property window comes up missing -- gone, disappears.
(2) And, in a particular Access database, the entire code behind the form
sometimes comes up missing. I've then have to get an archived copy of the
code, paste it into the form's code module, compile the code, test the
functionality of the command buttons that work okay now. And this form will
be good for a while or days, but then I will have another experience where
the code becomes missing again. No way has there ever been a property
setting of HasModule = False that would have removed the code. However, the
behavior of this one application is acting like it has been invoked.
What is happening here in these two incidents? Is this possibly a side
effect of a database corruption that I experience from time to time after
adding code behind forms, etc?
I am using:
Microsoft Access 2003 SP3
The original form and code in (2) above was designed in an Access 97
database, but imported, modified and deployed in many projects in
Access 2000, Access 2002, and Access 2003
Database developed on a Windows XP and then moved to Windows Vista Ultimate
which now with SP1
Database deployed on Windows XP and a few Vista computerfs
Is there are good code snippet that I could use to check programmatically
code events like _Click, _AfterUpdte, etc and verify if the code has a
corresponding [Event Procedure] property? Does any one have or use code like
this that they are willing to share? If not, I will start the process of
writing a code procedure to check this.
Howard