B
Bill Davis
I have a button on my form that I want to open my form
that is default to datasheet view but when it open it is
in Form Veiw. I have tried to change the view as in the
code but it does not give me and open for DataSheet view.
Please Help
Thanks in advance
Private Sub Command63_Click()
On Error GoTo Err_Command63_Click
Dim stDocName As String
stDocName = "qryDataView"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command63_Click:
Exit Sub
Err_Command63_Click:
MsgBox Err.Description
Resume Exit_Command63_Click
End Sub
that is default to datasheet view but when it open it is
in Form Veiw. I have tried to change the view as in the
code but it does not give me and open for DataSheet view.
Please Help
Thanks in advance
Private Sub Command63_Click()
On Error GoTo Err_Command63_Click
Dim stDocName As String
stDocName = "qryDataView"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command63_Click:
Exit Sub
Err_Command63_Click:
MsgBox Err.Description
Resume Exit_Command63_Click
End Sub