Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop-up keeps popping up

Status
Not open for further replies.

starbird

IS-IT--Management
Jun 12, 2002
22
0
0
US
Hi there.

I have a form with a combo box, cboBusJust, that I have set to

Code:
AfterUpdate = mcrBusJustPopUp

mcrBusJustPopUp is set to open the pop-up form, set a couple of values based on the main form, and have a field where the user enters the reasoning for the justification level. there is also a close button, which allows them to close the form.

this all works fine. the problem lies when I try to close the main form, the pop-up reappears, I then have to close it, and reclose the main form.

any ideas?

thanks!
 
Double check which AfterUpdate property you are using.

Make sure that it is the combobox's and not the form's.


HTH


Steve
 
It is. Still doing the same thing. Any other suggestions?
 
Just a thought, but maybe you could try working with the IsLoaded property. You could attach it to the popop's OnLoad something like...

Dim strForm As String

strFormName = Main form's name

If CurrentProject.AllForms(strFormName).Isloaded = False Then
'Close pop-up
End If

I've never tried this so it may fall flat on its face, but could be worth a shot.

Good luck,
CJ


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top