Hi all, I have a form that is used to vacate member and office positions (on resignation etc) for a number of different bodies. Rules are that when a member vacates their member position, they must vacate their office position, if they have one. However, a member can vacate his/her office position and still retain their member position.
The database has been designed such that admin staff on the boards upload appointment information , however, resignation (etc) information is done centrally here. When the staff are uploading information, they simply type in the name of the member or office holder that has been appointed. Due to this, there is no connection between members and office holders other than they _should_ have the same name (or at least the same surname - disregarding typos, of course).
Therefore when an office holder vacates the office, if they've resigned their member position as well, I want to pop up a new version of the same form so the user can decide that member Michael Smith is the same as Treasurer Mike Smith and vacate him accordingly. I'm using doCmd.OpenForm, but instead of displaying the form it seems the program is continuing on, and I run into a 3420 run-time error 'Object invalid or no longer set' further down the code (when it tries to navigate a recordset created by a query run by the original form).
So how do I modally open a form, and pause execution in the current form, while it is running? I was hoping something like java's new might exist (eg: DoCmd.OpenForm new "frmVacateMember") but that didn't work.
cheers and tia
mcalex
The database has been designed such that admin staff on the boards upload appointment information , however, resignation (etc) information is done centrally here. When the staff are uploading information, they simply type in the name of the member or office holder that has been appointed. Due to this, there is no connection between members and office holders other than they _should_ have the same name (or at least the same surname - disregarding typos, of course).
Therefore when an office holder vacates the office, if they've resigned their member position as well, I want to pop up a new version of the same form so the user can decide that member Michael Smith is the same as Treasurer Mike Smith and vacate him accordingly. I'm using doCmd.OpenForm, but instead of displaying the form it seems the program is continuing on, and I run into a 3420 run-time error 'Object invalid or no longer set' further down the code (when it tries to navigate a recordset created by a query run by the original form).
So how do I modally open a form, and pause execution in the current form, while it is running? I was hoping something like java's new might exist (eg: DoCmd.OpenForm new "frmVacateMember") but that didn't work.
cheers and tia
mcalex