Update Command Button Caption

D

Dwight

I am having troubles getting the caption on a command button to automatically
update.

I have a sub form with checkboxes that need to update the command button's
caption on the main form depending on which one is checked.

Is there a way to go about this?

Thanks in advance!

Dwight
 
J

J_Goddard via AccessMonster.com

To change the caption on the main form command button, from the sub-form, use:


me.parent![commandbutton].caption="New Text"
I want I am really trying to do is to refresh or requery the main form

I don't quite know what you mean by this - Refresh amd Requery are very
different - but from the sub-form you can use me.parent.Refresh or me.
parent.requery

John


I want I am really trying to do is to refresh or requery the main form
I am having troubles getting the caption on a command button to automatically
update.
[quoted text clipped - 7 lines]
 

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