Refresh method error

B

Bretona10

Hi everyone, I have a problem in a forms Afterupdate code.

The form is three layered, meaning there is a master form, subform, then a
sub-sub form.
I an tryng to refresh the Middle form from the bottom form but this code
"[forms]![master]![Sub].refresh" gives me an error that this cannot be
preformed on this kind of item.
IS there an proper way to refresh the middle form? IS my code wrong? Or cant
it be done?

Thanks
Bret
 
C

Cheese_whiz

Hi Bretona,

If you wanted to refresh a regular subform, the code would look like this:

Forms!subFormControlName.Form.Refresh

You use the subform control name, and you need the .Form after the subform
control name.

See if that helps,
CW
 

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

Similar Threads


Top