Hi Jonefer
I assume you already have some code to handle the DblClick event(s) in the
subform.
I suggest you make it a Public function in the subform's module:
Public Function OpenDetailsForm()
DoCmd.OpenForm "frmDetails", acNormal, , "ID=" & ID, _
WindowMode:=acDialog
End Function
Then, for the OnDblClick property of the form/controls, call the function:
=OpenDetailsForm()
And then in the Click event procedure for the button on your main form, call
the subform's function:
Private Sub CmdShowDetails_Click()
Call Me!sbfrm_Tasks_Interface.OpenDetailsForm()
End Sub

Signature
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
>I have a subform viewed in datasheet display where a user can conveniently
> view the details of that record in single-form view (pop-up) by
[quoted text clipped - 16 lines]
>
> I know I saw an example of this somewhere, but I can't seem to find it.
jonefer - 28 Nov 2005 23:02 GMT
Thanks, the clean up was nice too.
> Hi Jonefer
>
[quoted text clipped - 37 lines]
> >
> > I know I saw an example of this somewhere, but I can't seem to find it.