1) Right-click on the control and choose "properties"
2) Under the "Event" tab, for the "After Update" property, click the
"..." and choose "Code Builder"
3) Inside the Sub type:
DoCmd.Close
--
Ken Snell
http://www.accessmvp.com/KDSnell/
"rruston" <rru...@discussions.microsoft.com> wrote in message
news:0803E17D-6ED1-4F31...@microsoft.com...
Me![SubformControlName].Visible = False
You'll need to set it back to True again via some event;
Me![SubformControlname].Visible = True
Can't tell you which events to use since I don't know anything
about the circumstances.
--
_________
Sean Bailey
--
Ken Snell
http://www.accessmvp.com/KDSnell/
"rruston" <rru...@discussions.microsoft.com> wrote in message
news:23CF9455-9D87-4DE3...@microsoft.com...
With this code:
Private Sub List6_AfterUpdate ()
Invention.Forms![Invention Entry Form]![Open Lead Inventor Form].Visible =
False
End Sub
rruston
"Ken Snell" wrote:
> .
>
>I'm getting this error: Run-time error '424': Object required
>
>With this code:
>
>Private Sub List6_AfterUpdate ()
>Invention.Forms![Invention Entry Form]![Open Lead Inventor Form].Visible =
>False
>End Sub
>
I think you need to remove the Invention. at the start of this string. What
does it refer to???
The syntax is
Forms![MainForm]![Subform].Visible = False
where MainForm is the name of the main form, and Subform is the name of the
*subform control* on the main form; this might be different from the name of
the form object within that subform control.
--
John W. Vinson [MVP]