I want to put in a command button to open a form in the Datasheet View. I realize that you can click the Datasheet View button where all of the different views are located, but I am making this for someone who wants to have a button to click on to "simplify" things.
Here is the code I have thus far for the command button. Is there a different name I need to be using to tell it where to open?
Thanks for the help!!!
Private Sub Command127_Click()
On Error GoTo Err_Command127_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "filter test"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command127_Click:
Exit Sub
Err_Command127_Click:
MsgBox Err.Description
Resume Exit_Command127_Click
End Sub