msacces pop up form opening in datasheet view instead of single form view syntax required

need to have this form open in data sheet view and not in single from view, have doen it before but cannot find the line to change looking on the net
any help please most appreciated

Private Sub Command19_Click()
On Error GoTo Err_Command19_Click

    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "frmDisplayresultsemployeeindiv"
    DoCmd.OpenForm stDocName, , , stLinkCriteria

    Exit Sub

    MsgBox Err.Description
    Resume Exit_Command19_Click
End Sub
Who is Participating?
clarkscottConnect With a Mentor Commented:
docmd.openform "yourform", acformds

scott c
sydneyguyAuthor Commented:
thanks perfect
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.