-----Original Message-----
It wouldn't exactly be a subform, but a different form
that you open, perhaps with a link criteria.
Try something like this:
'Code Start
Private Sub MyBtn_Click()
DoCmd.OpenForm "MySubFormName",,,"MyLinkCriteria"
End Sub
'code end
your link cirteria should be something along the lines
of "[OrderDetailsTbl.OrderID] = " & Me![OrderID]
If you want to keep a subform hidden and only show it on
the button click, you can use the .Visible property of the
subform control.
HTH,
Ayelet
-----Original Message-----
I would like to know if it is possible to open a subform
from a button, and if so how?
.
.