Why is this code not working

A

Ayo

I am using the code below on a command button on a form but the form just
blinks and nothing else happens.
Private Sub cmdCancel_Click()
Unload Me
MilestoneForm.Show
End Sub

This is a similar code I used in another file and this works perfect.
Private Sub cmdCancel_Click()
Unload Me
ufrmsiteInfo.Show
End Sub

Any ideas what is going on where?
Thanks
 
N

Nigel

Is the name of the form you are closing MilestoneForm ? As you are
re-initializing if it is.
 
A

Ayo

Thanks Nigel. I just figured out that I was unload the form and showing at
the same time. MilestoneForm is the same form that is being Unload.Me
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top