form still on task bar

B

babs

I have added the code below to the on click event of a command button
I want the form to be closed because when I navigate to a new form this form
is a subform on the mainform(not linked) just a list but I have to refresh
form manually

DoCmd.Close acForm, "[JeffJobsToBEATqry Form]"

thought when use the above code - the current form jeffjobstobeatqry form
should CLOSE(not see on taskbar) and then when Main form opens it will Reopen
and refresh???

why is the form still showing up on taskbar(doesn't seem to be closing with
the above code)??
Thanks,
Barb
 
R

Rob Parker

Hi Barb,

Does your form have the [ ] as partof its name? If not, remove them - the
quoted string needs to contain the form's exact name.

HTH,

Rob
 

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