A
aualias
Albert,
From the documentation, it seems that the Unload event is the place to send
an e-mail. Since you can cancel the form's closing in that event, all the
data should still be there and the user cannot enter more.
To be honest, this form does work now (with my terrible kludge - global
variables for the e-mail). To fix the many problems correctly, my client
will just have to spring for some redesign. When they click the button to
enter a new job, it should certainly not be in the same window as the job
that they are on. That way, if they click on the new job button again it
will just pop up another new job window. Also, I like David's idea of local
tables for entering/updating data. That way they can accept or cancel all
input as a transaction.
You all have convinced me that they should not move away from Access unless
their needs change dramatically. I shall let them know. You have also
convinced me that being able to write COM code in C++ does not exempt me
from biting the bullet and learning the tools when working with Access. At
a bare minimum I have to know the event model and write some test apps to
see exactly how things work.
My client, as do many, does not want to spend too much money on this
application on which their livelihood is based. I am working for a friend
who is trying to keep the price down so he can keep the client. It has not
inspired me to spend much time in getting up to speed. Now I have to lay
down some conditions that I can work under. They do not have to pay for my
learning curve, but they do have to give the ok to enough hours to
restructure the application and to make the job worth doing.
Thanks to all of you. It's been a great help.
Alfredo
From the documentation, it seems that the Unload event is the place to send
an e-mail. Since you can cancel the form's closing in that event, all the
data should still be there and the user cannot enter more.
To be honest, this form does work now (with my terrible kludge - global
variables for the e-mail). To fix the many problems correctly, my client
will just have to spring for some redesign. When they click the button to
enter a new job, it should certainly not be in the same window as the job
that they are on. That way, if they click on the new job button again it
will just pop up another new job window. Also, I like David's idea of local
tables for entering/updating data. That way they can accept or cancel all
input as a transaction.
You all have convinced me that they should not move away from Access unless
their needs change dramatically. I shall let them know. You have also
convinced me that being able to write COM code in C++ does not exempt me
from biting the bullet and learning the tools when working with Access. At
a bare minimum I have to know the event model and write some test apps to
see exactly how things work.
My client, as do many, does not want to spend too much money on this
application on which their livelihood is based. I am working for a friend
who is trying to keep the price down so he can keep the client. It has not
inspired me to spend much time in getting up to speed. Now I have to lay
down some conditions that I can work under. They do not have to pay for my
learning curve, but they do have to give the ok to enough hours to
restructure the application and to make the job worth doing.
Thanks to all of you. It's been a great help.
Alfredo