Is it possible to execute more than one action in an event procedure? On exit of a subform control on the main form, I use an event procedure to do a refresh on a different subform on the same main form.
(Forms!PPI_Main_Form!Calc_PPE_Stats_subform.Form.Requery)
I also want to run an update query against another table based on the input into the first subform, and I want to do it when returning to the main form, as soon as the records have been written to the table underlying the subform. I have a macro that runs the update query for me. The refresh and the update work when either of them is attached to the on exit event. I cannot figure out a way to make them run as a part of the same on exit. I have let Access convert the macro to a module, but I still can't find a way to use it. Surely there is a way to do this and I am overlooking it. I can tie the update macro to another control the user should touch but there is an element of uncertainity there, and it just doesn't feel right to do it that way.
One more question. I am returning to Access after about 10 years, and never did a lot with VBA when I was working with it. I was using Access97 at the time. When I started this project I had 2003 on my machine and converted some of my old work to refresh myself. It didn't take me long to install Access97 and go back to the old versions. I am more comfortable now, and will have to eventualy convert the project to 2003 when I turn it over to the users. The question is, is there enough (or any) increased functionality in 2003 for it to be worth getting out of my comfort zone with Access97?
This is a great forum and reading through your answers to the various posts has been a great help to me as I have been grinding through this.
(Forms!PPI_Main_Form!Calc_PPE_Stats_subform.Form.Requery)
I also want to run an update query against another table based on the input into the first subform, and I want to do it when returning to the main form, as soon as the records have been written to the table underlying the subform. I have a macro that runs the update query for me. The refresh and the update work when either of them is attached to the on exit event. I cannot figure out a way to make them run as a part of the same on exit. I have let Access convert the macro to a module, but I still can't find a way to use it. Surely there is a way to do this and I am overlooking it. I can tie the update macro to another control the user should touch but there is an element of uncertainity there, and it just doesn't feel right to do it that way.
One more question. I am returning to Access after about 10 years, and never did a lot with VBA when I was working with it. I was using Access97 at the time. When I started this project I had 2003 on my machine and converted some of my old work to refresh myself. It didn't take me long to install Access97 and go back to the old versions. I am more comfortable now, and will have to eventualy convert the project to 2003 when I turn it over to the users. The question is, is there enough (or any) increased functionality in 2003 for it to be worth getting out of my comfort zone with Access97?
This is a great forum and reading through your answers to the various posts has been a great help to me as I have been grinding through this.