You can switch a subform between datasheet and form view ...
Private Sub Command1_Click()
Me.NameOfSubformControl.SetFocus
'1 = form view, 2 = datasheet view ...
If Me.NameOfSubformControl.Form.CurrentView = 1 Then
DoCmd.RunCommand acCmdSubformDatasheetView
Else
DoCmd.RunCommand acCmdSubformFormView
End If
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.