D
DavidW
Is there a way to check to see if a specific form is open from a different
form through code and if there is a specific form other than the current
form open ,be able to close that form
What the deal is
When a certain condition developes during data entry(as in a duplicated
entry), I want to be able to give the user a chance to delete the existing
entry if needed(sometimes I have to have a duplicated entry), the problem I
am getting is that the code that checks for that is in the on current event,
it looks at 2 different subforms linked by unit and if both units match ,my
codes pops a popup and ask them what they want to do. Now if they select yes
to delete the existing entry, I am opening a form that show the existing
enteries, and I am also trying to close the form that triggered the event,
but I can't because it says that it cannot carry out the event while
processing a form. Is there a way to do this, or am I barking up the wrong
tree?
Thanks David
form through code and if there is a specific form other than the current
form open ,be able to close that form
What the deal is
When a certain condition developes during data entry(as in a duplicated
entry), I want to be able to give the user a chance to delete the existing
entry if needed(sometimes I have to have a duplicated entry), the problem I
am getting is that the code that checks for that is in the on current event,
it looks at 2 different subforms linked by unit and if both units match ,my
codes pops a popup and ask them what they want to do. Now if they select yes
to delete the existing entry, I am opening a form that show the existing
enteries, and I am also trying to close the form that triggered the event,
but I can't because it says that it cannot carry out the event while
processing a form. Is there a way to do this, or am I barking up the wrong
tree?
Thanks David